aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-22 23:51:44 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-22 23:51:44 +1200
commit32bd16aa3175b2dd156da3158105d3f82ab65642 (patch)
tree3d77da68bfa16b1f42953116f6d99dcce7f8ab09 /libpathod
parent96db3557ce88cd6f4993a1c090d0d717b34db57e (diff)
downloadmitmproxy-32bd16aa3175b2dd156da3158105d3f82ab65642.tar.gz
mitmproxy-32bd16aa3175b2dd156da3158105d3f82ab65642.tar.bz2
mitmproxy-32bd16aa3175b2dd156da3158105d3f82ab65642.zip
Make file generators display nicely in pathoc actions dump.
Diffstat (limited to 'libpathod')
-rw-r--r--libpathod/rparse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py
index 810fefc0..d083e335 100644
--- a/libpathod/rparse.py
+++ b/libpathod/rparse.py
@@ -171,6 +171,9 @@ class FileGenerator:
def __getslice__(self, a, b):
return self.map.__getslice__(a, b)
+ def __repr__(self):
+ return "<%s"%self.path
+
class _Value:
def __init__(self, val):