• Michael Selik's avatar
    bpo-29957: change LBYL key lookup to dict.setdefault (#938) · 11fa3c7c
    Michael Selik yazdı
    * change LBYL key lookup to dict.setdefault
    
    The ``results`` was constructed as a defaultdict and we could simply
    delete the check ``if key not in results``. However, I think it's safer
    to use dict.setdefault as I'm not sure whether the caller expects a
    regular dict or defaultdict.
    
    * add name to the acknowledgements file
    
    * use defaultdict to make the key-lookup cleaner
    11fa3c7c
btm_matcher.py 6.47 KB