Skip to content
Snippets Groups Projects
Commit 39e977ba authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Remove unsafe default value

Since default values are evaluated only once, mutable objects shouldn't be used.
parent 12121492
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ import mwclient.errors
class Page(object):
def __init__(self, site, name, info=None, extra_properties={}):
def __init__(self, site, name, info=None, extra_properties=None):
if type(name) is type(self):
return self.__dict__.update(name.__dict__)
self.site = site
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment