From d0d0ba6ba75606895fcc7cf71608009f2272aceb Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 29 Dec 2019 17:34:58 +0100 Subject: [PATCH] initialize dict in code to avoid wrong references --- owrx/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/command.py b/owrx/command.py index 97c0d55..21d60d1 100644 --- a/owrx/command.py +++ b/owrx/command.py @@ -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):