Commit 2adbb9d4 authored by Jeremy Hylton's avatar Jeremy Hylton

Get rid of unused assignments and apparently unused default arguments.

parent b50f8e3a
...@@ -85,9 +85,10 @@ class BasicStorage: ...@@ -85,9 +85,10 @@ class BasicStorage:
eq(value, MinPO(11)) eq(value, MinPO(11))
eq(revid, newrevid) eq(revid, newrevid)
def checkNonVersionStore(self, oid=None, revid=None, version=None): ## def checkNonVersionStore(self, oid=None, revid=None, version=None):
def checkNonVersionStore(self):
revid = ZERO revid = ZERO
newrevid = self._dostore(revid=revid) newrevid = self._dostore(revid=None)
# Finish the transaction. # Finish the transaction.
self.assertNotEqual(newrevid, revid) self.assertNotEqual(newrevid, revid)
......
...@@ -78,10 +78,8 @@ def zodb_unpickle(data): ...@@ -78,10 +78,8 @@ def zodb_unpickle(data):
if isinstance(klass_info, types.TupleType): if isinstance(klass_info, types.TupleType):
if isinstance(klass_info[0], types.TupleType): if isinstance(klass_info[0], types.TupleType):
modname, klassname = klass_info[0] modname, klassname = klass_info[0]
args = klass_info[1]
else: else:
modname, klassname = klass_info modname, klassname = klass_info
args = None
if modname == "__main__": if modname == "__main__":
ns = globals() ns = globals()
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