Skip to content

Commit 4e98bd7

Browse files
updates to process and pipe import code...need a way to turn
billiard on/off
1 parent ac1e323 commit 4e98bd7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

memory_profiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222

2323
# TODO: provide alternative when multiprocessing is not available
2424
MULTILIBS = (
25-
("billiard", lambda: True if "MEMPROF_PREFERS_BILLIARD" in os.environ and \
26-
os.environ["MEMPROF_PREFERS_BILLIARD"] in ["True", "true", "TRUE", "1"]),
25+
("billiard", (lambda: True if "MEMPROF_PREFERS_BILLIARD" in os.environ and
26+
os.environ["MEMPROF_PREFERS_BILLIARD"] in ["True", "true", "TRUE", "1"]
27+
else False)),
2728
("multiprocessing",),
2829
("multiprocessing.dummy",)
2930
)

0 commit comments

Comments
 (0)