aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/memoryleak.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-27 10:12:18 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-27 10:36:28 +0100
commit8c375383148f100f03aed52827ac513f145078c2 (patch)
treedbae3b5d4d603e5e226477f1938119e2acfcfc1f /test/tools/memoryleak.py
parentc2bb29f669cd80509f4efe205551a9cf5fc29770 (diff)
downloadmitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.gz
mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.bz2
mitmproxy-8c375383148f100f03aed52827ac513f145078c2.zip
code formatting: fix whitespace issues
Diffstat (limited to 'test/tools/memoryleak.py')
-rw-r--r--test/tools/memoryleak.py4
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)))