diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-22 23:51:44 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-22 23:51:44 +1200 |
commit | 32bd16aa3175b2dd156da3158105d3f82ab65642 (patch) | |
tree | 3d77da68bfa16b1f42953116f6d99dcce7f8ab09 /libpathod | |
parent | 96db3557ce88cd6f4993a1c090d0d717b34db57e (diff) | |
download | mitmproxy-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.py | 3 |
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): |