##// END OF EJS Templates
Merge pull request #4342 from abhinav-upadhyay/unnessary-variable-assignment...
Thomas Kluyver -
r12948:f8bc560e merge
parent child Browse files
Show More
@@ -328,10 +328,9 b" def reload(module, exclude=['sys', 'os.path', '__builtin__', '__main__']):"
328 found_now[i] = 1
328 found_now[i] = 1
329 try:
329 try:
330 with replace_import_hook(deep_import_hook):
330 with replace_import_hook(deep_import_hook):
331 ret = deep_reload_hook(module)
331 return deep_reload_hook(module)
332 finally:
332 finally:
333 found_now = {}
333 found_now = {}
334 return ret
335
334
336 # Uncomment the following to automatically activate deep reloading whenever
335 # Uncomment the following to automatically activate deep reloading whenever
337 # this module is imported
336 # this module is imported
@@ -143,10 +143,9 b' def latex_to_png_dvipng(s, wrap):'
143 stdout=devnull, stderr=devnull)
143 stdout=devnull, stderr=devnull)
144
144
145 with open(outfile, "rb") as f:
145 with open(outfile, "rb") as f:
146 bin_data = f.read()
146 return f.read()
147 finally:
147 finally:
148 shutil.rmtree(workdir)
148 shutil.rmtree(workdir)
149 return bin_data
150
149
151
150
152 def kpsewhich(filename):
151 def kpsewhich(filename):
General Comments 0
You need to be logged in to leave comments. Login now