Kaydet (Commit) 9aeee75c authored tarafından Guido van Rossum's avatar Guido van Rossum

added Entry.dump() method

üst 4d4ee8bd
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment