Commit d812c7eb authored by Jim Fulton's avatar Jim Fulton

Added missing TupleType definition.

parent f6a4756f
...@@ -89,6 +89,7 @@ from utils import p64, u64 ...@@ -89,6 +89,7 @@ from utils import p64, u64
from referencesf import referencesf from referencesf import referencesf
from cStringIO import StringIO from cStringIO import StringIO
from cPickle import Pickler, Unpickler from cPickle import Pickler, Unpickler
TupleType=type(())
class ExportImport: class ExportImport:
...@@ -181,7 +182,8 @@ class ExportImport: ...@@ -181,7 +182,8 @@ class ExportImport:
if oids: if oids:
oid=oids[ooid] oid=oids[ooid]
if type(oid) is TupleType: oid=oid[0] if type(oid) is TupleType: oid=oid[0]
else: oids[ooid]=return_oid=oid=new_oid() else:
oids[ooid]=return_oid=oid=new_oid()
pfile=StringIO(p) pfile=StringIO(p)
unpickler=Unpickler(pfile) unpickler=Unpickler(pfile)
......
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