##// END OF EJS Templates
profile: close 'fp' in all cases...
marmoute -
r32809:062eb859 default
parent child Browse files
Show More
@@ -214,8 +214,7 b' class profile(object):'
214 raise
214 raise
215
215
216 def __exit__(self, exception_type, exception_value, traceback):
216 def __exit__(self, exception_type, exception_value, traceback):
217 if self._profiler is None:
217 if self._profiler is not None:
218 return
219 self._profiler.__exit__(exception_type, exception_value, traceback)
218 self._profiler.__exit__(exception_type, exception_value, traceback)
220 if self._output == 'blackbox':
219 if self._output == 'blackbox':
221 val = 'Profile:\n%s' % self._fp.getvalue()
220 val = 'Profile:\n%s' % self._fp.getvalue()
General Comments 0
You need to be logged in to leave comments. Login now