msanders / cider

Hassle-free bootstrapping with Homebrew.
https://pypi.python.org/pypi/cider/
MIT License
839 stars 25 forks source link

Fix for defaults.write #40

Closed TheSeubert closed 7 years ago

TheSeubert commented 8 years ago

The key_type dictionary was iterated over with no order. This causes a boolean and possibly other values to be identified as other types such as int should python match it first within the isinstance() return check.

To correct this, the sorted() function was added to respect the order.

This also should fix #34.

msanders commented 7 years ago

Thanks!