summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/cvslib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-04-27 19:01:37 (GMT)
committerGuido van Rossum <guido@python.org>1995-04-27 19:01:37 (GMT)
commit9aeee75c590ca8c31bb9abd674e72766c1c70a94 (patch)
treefc9ed29865f8f9640cb264ceb38fc9fbbb296826 /Demo/pdist/cvslib.py
parent4d4ee8bdb0023df9dba6f005a1e58efbf0962df0 (diff)
downloadcpython-9aeee75c590ca8c31bb9abd674e72766c1c70a94.zip
cpython-9aeee75c590ca8c31bb9abd674e72766c1c70a94.tar.gz
cpython-9aeee75c590ca8c31bb9abd674e72766c1c70a94.tar.bz2
added Entry.dump() method
Diffstat (limited to 'Demo/pdist/cvslib.py')
-rwxr-xr-xDemo/pdist/cvslib.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Demo/pdist/cvslib.py b/Demo/pdist/cvslib.py
index 61c7475..bd99411 100755
--- a/Demo/pdist/cvslib.py
+++ b/Demo/pdist/cvslib.py
@@ -50,6 +50,13 @@ class Entry:
return hexify(self.sum)
else:
return None
+
+ def dump(self):
+ keys = self.__dict__.keys()
+ keys.sort()
+ for key in keys:
+ print "%-15s: %s" % (key, `self.__dict__[key]`)
+ print '-'*45
class CVS: