diff options
author | Guido van Rossum <guido@python.org> | 1995-04-27 19:01:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-04-27 19:01:37 (GMT) |
commit | 9aeee75c590ca8c31bb9abd674e72766c1c70a94 (patch) | |
tree | fc9ed29865f8f9640cb264ceb38fc9fbbb296826 /Demo/pdist/cvslib.py | |
parent | 4d4ee8bdb0023df9dba6f005a1e58efbf0962df0 (diff) | |
download | cpython-9aeee75c590ca8c31bb9abd674e72766c1c70a94.zip cpython-9aeee75c590ca8c31bb9abd674e72766c1c70a94.tar.gz cpython-9aeee75c590ca8c31bb9abd674e72766c1c70a94.tar.bz2 |
added Entry.dump() method
Diffstat (limited to 'Demo/pdist/cvslib.py')
-rwxr-xr-x | Demo/pdist/cvslib.py | 7 |
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: |