]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added Entry.dump() method
authorGuido van Rossum <guido@python.org>
Thu, 27 Apr 1995 19:01:37 +0000 (19:01 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 27 Apr 1995 19:01:37 +0000 (19:01 +0000)
Demo/pdist/cvslib.py

index 61c74757ad00da6fb2518abce6e4750f9656beb5..bd99411c8a2b1bf28877c217bf8ebdeb56420563 100755 (executable)
@@ -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: