rezemika / humanized_opening_hours

A parser for the opening_hours fields from OpenStreetMap
GNU Affero General Public License v3.0
26 stars 20 forks source link

Fix python 3.6+ compatibility when iterating over babel dicts #24

Closed amatissart closed 5 years ago

amatissart commented 5 years ago

Hi! On python 3.6+, day names are offset by one.
Latest versions of python preserve insertion order in dicts, and Sunday comes first in Babel data for some reason. So it is necessary to sort them by key explicitly.

Why not setting up Travis and run the tests on multiple versions of Python automatically ?

amatissart commented 5 years ago

And that should fix #20 :)

rezemika commented 5 years ago

Thank you! I just rebased and merged it by hand. :)

amatissart commented 5 years ago

Thanks!