From 32bd16aa3175b2dd156da3158105d3f82ab65642 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 22 Jul 2012 23:51:44 +1200 Subject: [PATCH] Make file generators display nicely in pathoc actions dump. --- libpathod/rparse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpathod/rparse.py b/libpathod/rparse.py index 810fefc0f..d083e335a 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):