[Zope3-checkins] CVS: Zope3/src/zodb/storage - fsdump.py:1.2.4.1

Jeremy Hylton jeremy@zope.com
Thu, 23 Jan 2003 11:10:55 -0500


Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv6052

Modified Files:
      Tag: new-pickle-branch
	fsdump.py 
Log Message:
Add an __name__ == "__main__" section.


=== Zope3/src/zodb/storage/fsdump.py 1.2 => 1.2.4.1 ===
--- Zope3/src/zodb/storage/fsdump.py:1.2	Wed Dec 25 09:12:19 2002
+++ Zope3/src/zodb/storage/fsdump.py	Thu Jan 23 11:10:53 2003
@@ -11,6 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""A low-level utility to dump the internal FileStorage representation."""
 
 import struct
 from zodb.storage.file import TRANS_HDR, TRANS_HDR_LEN
@@ -91,3 +92,7 @@
         if not dlen:
             sbp = self.file.read(8)
             print >> self.dest, "backpointer: %d" % u64(sbp)
+
+if __name__ == "__main__":
+    import sys
+    Dumper(sys.argv[1]).dump()