rozzac90 / matchbook

Python wrapper for Matchbook API
MIT License
15 stars 11 forks source link

Broken on python 3.8 #15

Open rjjeffries opened 3 years ago

rjjeffries commented 3 years ago

Modifying a dict while iterating over it has always been a bug, but Python 3.8 enforces this break clean_locals in utils.py

clean_params = dict((k, v) for k, v in params.items() if v is not None and k != 'self' and k != 'session') for k, v in cleanparams.items(): if '' in k: newkey = k.replace('', '-') clean_params[new_key] = v clean_params.pop(k) return clean_params