Skip to content

Commit 1432dda

Browse files
committed
Remove unused variable
1 parent f9fe75c commit 1432dda

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

memory_profiler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ def memory_usage(proc=-1, interval=.1, timeout=None, timestamps=False,
326326
raise ValueError
327327

328328
while True:
329-
exit_block = False
330329
child_conn, parent_conn = Pipe() # this will store MemTimer's results
331330
p = MemTimer(os.getpid(), interval, child_conn, backend,
332331
timestamps=timestamps,
@@ -353,7 +352,7 @@ def memory_usage(proc=-1, interval=.1, timeout=None, timestamps=False,
353352
raise
354353

355354
p.join(5 * interval)
356-
if exit_block or n_measurements > 4 or interval < 1e-6:
355+
if n_measurements > 4 or interval < 1e-6:
357356
break
358357
interval /= 10.
359358
elif isinstance(proc, subprocess.Popen):

0 commit comments

Comments
 (0)