use None as default parameter instead of empty list

This commit is contained in:
udf 2018-06-10 21:10:48 +02:00
parent a2a4b506cb
commit a07a352d1c
1 changed files with 2 additions and 2 deletions

View File

@ -70,9 +70,9 @@ MATCHERS = [
]
def parse(message, old_entities=[]):
def parse(message, old_entities=None):
entities = []
old_entities = {e.offset: e for e in old_entities}
old_entities = {e.offset: e for e in old_entities or []}
i = 0
message = _add_surrogate(message)