From 6d343c7ca352b41e1a07e8a3001b36667ac8f5f8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 5 Oct 2016 09:54:23 +1100 Subject: debug: use correct fp for memory object output --- netlib/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netlib') diff --git a/netlib/debug.py b/netlib/debug.py index 657d4465..450b058a 100644 --- a/netlib/debug.py +++ b/netlib/debug.py @@ -91,7 +91,7 @@ def dump_info(signal=None, frame=None, file=sys.stdout, testing=False): # pragm itms = list(d.items()) itms.sort(key=lambda x: x[1]) for i in itms[-20:]: - print(i[1], i[0]) + print(i[1], i[0], file=file) print("****************************************************", file=file) if not testing: -- cgit v1.2.3