Merge pull request #1273 from Kriechi/fix-default-arg

fix default arg
This commit is contained in:
Maximilian Hils 2016-06-20 14:52:16 -07:00 committed by GitHub
commit 7ef0e37c74

View File

@ -323,7 +323,10 @@ if pyamf:
prompt = ("amf", "f") prompt = ("amf", "f")
content_types = ["application/x-amf"] content_types = ["application/x-amf"]
def unpack(self, b, seen=set([])): def unpack(self, b, seen=None):
if seen is None:
seen = set([])
if hasattr(b, "body"): if hasattr(b, "body"):
return self.unpack(b.body, seen) return self.unpack(b.body, seen)
if isinstance(b, DummyObject): if isinstance(b, DummyObject):