mutable varibale bug

This commit is contained in:
2019-12-16 21:36:24 +08:00
parent 2dffadca8c
commit ae1db6e3ab
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
class Datapack:
def __init__(self, method='post', app='all', version='msw/1.0', head={}, body=b'', check_head=True):
def __init__(self, method='post', app='all', version='msw/1.0', head=None, body=b'', check_head=True):
if head is None:
self.head = {}
self.method = method
self.app = app
self.version = version