initialize dict in code to avoid wrong references

This commit is contained in:
Jakob Ketterl 2019-12-29 17:34:58 +01:00
parent 550637ddef
commit d0d0ba6ba7

View File

@ -2,9 +2,9 @@ from abc import ABC, abstractmethod
class CommandMapper(object):
def __init__(self, base=None, mappings={}, static=None):
def __init__(self, base=None, mappings=None, static=None):
self.base = base
self.mappings = mappings
self.mappings = {} if mappings is None else mappings
self.static = static
def map(self, values):