VROOM-Project / vroom-scripts

BSD 2-Clause "Simplified" License
34 stars 20 forks source link

plot.y .has_key deprecated, change to in #15

Closed DCSnip3r closed 3 years ago

DCSnip3r commented 3 years ago

Lines 23 and 89 of plot.py should be changed to use 'in' since has_key is deprecated with Python 3.x

Ref: https://stackoverflow.com/questions/1323410/should-i-use-has-key-or-in-on-python-dicts

Solution: 23:if(not 'routes' in solution): 89: if('routing' in solution['summary']['computing_times']):

jcoupey commented 3 years ago

Thanks for pointing this out. PR for this kind of enhancements are always welcome!