fix a bug because python changed pickle behavour apparently?

This commit is contained in:
Laura Klünder 2018-12-19 16:20:54 +01:00
parent e1438dda19
commit cb33be5125

View file

@ -665,7 +665,7 @@ class RouterWayType:
self.nonupwards_indices = deque()
def __getattr__(self, name):
if name == '__setstate__':
if name in ('__getstate__', '__setstate__'):
raise AttributeError
return getattr(self.src, name)