Browse Source

Fix mutable default

pull/41/head
Nicolas Bessi 10 years ago
parent
commit
79f088a498
  1. 4
      base_partner_merge/base_partner_merge.py

4
base_partner_merge/base_partner_merge.py

@ -26,7 +26,9 @@ _logger = logging.getLogger('base.partner.merge')
# http://www.php2python.com/wiki/function.html-entity-decode/
def html_entity_decode_char(m, defs=htmlentitydefs.entitydefs):
def html_entity_decode_char(m, defs=None):
if defs is None:
defs = htmlentitydefs.entitydefs
try:
return defs[m.group(1)]
except KeyError:

Loading…
Cancel
Save