forked from kate/uniborg
use None as default parameter instead of empty list
This commit is contained in:
parent
a2a4b506cb
commit
a07a352d1c
|
@ -70,9 +70,9 @@ MATCHERS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def parse(message, old_entities=[]):
|
def parse(message, old_entities=None):
|
||||||
entities = []
|
entities = []
|
||||||
old_entities = {e.offset: e for e in old_entities}
|
old_entities = {e.offset: e for e in old_entities or []}
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
message = _add_surrogate(message)
|
message = _add_surrogate(message)
|
||||||
|
|
Loading…
Reference in New Issue