mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
added Entry.dump() method
This commit is contained in:
parent
4d4ee8bdb0
commit
9aeee75c59
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ class Entry:
|
||||||
return hexify(self.sum)
|
return hexify(self.sum)
|
||||||
else:
|
else:
|
||||||
return None
|
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:
|
class CVS:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue