underscore.py
underscore.py copied to clipboard
OrderedDict enumeration broken in Python 3.4
File "test.py", line 27, in action
_(chapters.items()).forEach(lambda item, *others:
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/underscore.py-0.1.6-py3.4.egg/underscore/underscore.py", line 174, in each
TypeError: 'ItemsView' object is not subscriptable
chapters
is an OrderedDict.