fix for python 2.6 compatibility

This commit is contained in:
Luke Campagnola 2013-02-15 11:01:03 -05:00
parent 9c70d948aa
commit 783af1a918

View File

@ -436,7 +436,7 @@ class MeshData(object):
elif self._faceColorsIndexedByFaces is not None:
names.append('_faceColorsIndexedByFaces')
state = {n:getattr(self, n) for n in names}
state = dict([(n,getattr(self, n)) for n in names])
return pickle.dumps(state)
def restore(self, state):