From 9aeee75c590ca8c31bb9abd674e72766c1c70a94 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 27 Apr 1995 19:01:37 +0000 Subject: added Entry.dump() method --- Demo/pdist/cvslib.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- cgit v0.12