##// END OF EJS Templates
statprof: fix flake8 warnings...
Gregory Szorc -
r30254:ad4c0236 default
parent child Browse files
Show More
@@ -104,11 +104,10 b" main thread's work patterns."
104 # no-check-code
104 # no-check-code
105 from __future__ import division
105 from __future__ import division
106
106
107 import inspect, json, os, signal, tempfile, sys, getopt, threading, traceback
107 import inspect, json, os, signal, tempfile, sys, getopt, threading
108 import time
108 import time
109 from collections import defaultdict
109 from collections import defaultdict
110 from contextlib import contextmanager
110 from contextlib import contextmanager
111 from subprocess import call
112
111
113 __all__ = ['start', 'stop', 'reset', 'display', 'profile']
112 __all__ = ['start', 'stop', 'reset', 'display', 'profile']
114
113
@@ -328,7 +327,7 b' def save_data(path=None):'
328 file.write(time + '\0' + '\0'.join(sites) + '\n')
327 file.write(time + '\0' + '\0'.join(sites) + '\n')
329
328
330 file.close()
329 file.close()
331 except (IOError, OSError) as ex:
330 except (IOError, OSError):
332 # The home directory probably didn't exist, or wasn't writable. Oh well.
331 # The home directory probably didn't exist, or wasn't writable. Oh well.
333 pass
332 pass
334
333
General Comments 0
You need to be logged in to leave comments. Login now