Fixing default list parameter

This commit is contained in:
Mitsuo Takaki
2017-02-11 01:15:09 -08:00
parent 3830063ba4
commit cb5137c526

View File

@@ -13,8 +13,10 @@ class Agent(object):
and updating the component. and updating the component.
""" """
def __init__(self, configuration, decorators=[]): def __init__(self, configuration, decorators=None):
self.configuration = configuration self.configuration = configuration
if decorators is None:
decorators = []
self.decorators = decorators self.decorators = decorators
def execute(self): def execute(self):