Skip to content

Commit 9e83dfc

Browse files
committed
FIX little fix for Python 3.3-
1 parent 86acef8 commit 9e83dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

memory_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def exec_with_profiler(filename, profiler):
10311031
with open(filename) as f:
10321032
exec(compile(f.read(), filename, 'exec'), ns, ns)
10331033
finally:
1034-
if tracemalloc.is_tracing():
1034+
if has_tracemalloc and tracemalloc.is_tracing():
10351035
tracemalloc.stop()
10361036

10371037

0 commit comments

Comments
 (0)