Commit b9e24eb7 authored by Marius Gedminas's avatar Marius Gedminas

Refactoring, typo fixes

parent c834a291
...@@ -16,8 +16,6 @@ import ZODB.FileStorage ...@@ -16,8 +16,6 @@ import ZODB.FileStorage
from ZODB.utils import get_pickle_metadata, p64, oid_repr, tid_repr from ZODB.utils import get_pickle_metadata, p64, oid_repr, tid_repr
from ZODB.serialize import get_refs from ZODB.serialize import get_refs
from ZODB.TimeStamp import TimeStamp from ZODB.TimeStamp import TimeStamp
from six.moves import map
from six.moves import zip
# Extract module.class string from pickle. # Extract module.class string from pickle.
def get_class(pickle): def get_class(pickle):
...@@ -82,8 +80,7 @@ class Tracer(object): ...@@ -82,8 +80,7 @@ class Tracer(object):
self.oids[oid] = 0 # 0 revisions seen so far self.oids[oid] = 0 # 0 revisions seen so far
def _msg(self, oid, tid, *args): def _msg(self, oid, tid, *args):
args = map(str, args) self.msgs.append( (oid, tid, ' '.join(map(str, args))) )
self.msgs.append( (oid, tid, ' '.join(args)) )
self._produced_msg = True self._produced_msg = True
def report(self): def report(self):
......
#!/usr/bin/env python2.3 #!/usr/bin/python
############################################################################## ##############################################################################
# #
......
...@@ -707,7 +707,7 @@ def get_refs(a_pickle): ...@@ -707,7 +707,7 @@ def get_refs(a_pickle):
u.load() u.load()
u.load() u.load()
# Now we have a list of referencs. Need to convert to list of # Now we have a list of references. Need to convert to list of
# oids and class info: # oids and class info:
result = [] result = []
......
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