Commit 475d8cb8 authored by Dmitry Vasiliev's avatar Dmitry Vasiliev

Eliminated unused md5 digest

parent a43f15e5
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
# FOR A PARTICULAR PURPOSE. # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
import md5
import struct import struct
from ZODB.FileStorage import FileIterator from ZODB.FileStorage import FileIterator
...@@ -39,12 +38,12 @@ def fsdump(path, file=None, with_offset=1): ...@@ -39,12 +38,12 @@ def fsdump(path, file=None, with_offset=1):
fullclass = "undo or abort of object creation" fullclass = "undo or abort of object creation"
else: else:
modname, classname = get_pickle_metadata(rec.data) modname, classname = get_pickle_metadata(rec.data)
dig = md5.new(rec.data).hexdigest()
fullclass = "%s.%s" % (modname, classname) fullclass = "%s.%s" % (modname, classname)
# special case for testing purposes # FIXME: Is this used?
if fullclass == "ZODB.tests.MinPO.MinPO": # special case for testing purposes
obj = zodb_unpickle(rec.data) if fullclass == "ZODB.tests.MinPO.MinPO":
fullclass = "%s %s" % (fullclass, obj.value) obj = zodb_unpickle(rec.data)
fullclass = "%s %s" % (fullclass, obj.value)
if rec.version: if rec.version:
version = "version=%s " % rec.version version = "version=%s " % rec.version
else: else:
......
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