diff options
Diffstat (limited to 'test/tools/memoryleak.py')
-rw-r--r-- | test/tools/memoryleak.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tools/memoryleak.py b/test/tools/memoryleak.py index 47cfff38..259309a6 100644 --- a/test/tools/memoryleak.py +++ b/test/tools/memoryleak.py @@ -18,7 +18,7 @@ def str_fun(obj): return "(-locals-)" if "self" in obj and isinstance(obj["self"], refbrowser.InteractiveBrowser): return "(-browser-)" - return str(id(obj)) + ": " + str(obj)[:100].replace("\r\n","\\r\\n").replace("\n","\\n") + return str(id(obj)) + ": " + str(obj)[:100].replace("\r\n", "\\r\\n").replace("\n", "\\n") def request(ctx, flow): @@ -35,4 +35,4 @@ def request(ctx, flow): ib = refbrowser.InteractiveBrowser(ssl, 2, str_fun, repeat=False) del ssl # do this to unpollute view ib.main(True) - # print("\r\n".join(str(x)[:100] for x in gc.get_referrers(ssl)))
\ No newline at end of file + # print("\r\n".join(str(x)[:100] for x in gc.get_referrers(ssl))) |