##// 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 214 raise
215 215
216 216 def __exit__(self, exception_type, exception_value, traceback):
217 if self._profiler is None:
218 return
217 if self._profiler is not None:
219 218 self._profiler.__exit__(exception_type, exception_value, traceback)
220 219 if self._output == 'blackbox':
221 220 val = 'Profile:\n%s' % self._fp.getvalue()
General Comments 0
You need to be logged in to leave comments. Login now