Avoid mutable default argumet.
This commit is contained in:
parent
68c17f1181
commit
58ea206c36
|
@ -92,11 +92,11 @@ def clean(s):
|
||||||
# For users, who want to provide their profile
|
# For users, who want to provide their profile
|
||||||
class Profile(get_profile_class('default')):
|
class Profile(get_profile_class('default')):
|
||||||
|
|
||||||
def __init__(self, columns=None, features={}):
|
def __init__(self, columns=None, features=None):
|
||||||
super(Profile, self).__init__()
|
super(Profile, self).__init__()
|
||||||
|
|
||||||
self.columns = columns
|
self.columns = columns
|
||||||
self.features = features
|
self.features = features or {}
|
||||||
|
|
||||||
def get_columns(self, font):
|
def get_columns(self, font):
|
||||||
if self.columns is not None:
|
if self.columns is not None:
|
||||||
|
|
Loading…
Reference in New Issue