Commit 68c155b2 by Calen Pennington

Don't use __dict__ for namedtuples, because it doesn't work in python 2.7.1

parent 92ea15b7
......@@ -122,7 +122,7 @@ class Location(_LocationBase):
return "-".join(str(v) for v in self.list() if v is not None).replace('.', '_')
def dict(self):
return self.__dict__
return self._asdict()
def list(self):
return list(self)
......
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