Mercurial > touhou
diff pytouhou/vm/common.py @ 590:e15672733c93
Switch to Python 3.x instead of 2.7.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 30 Sep 2014 17:14:24 +0200 |
parents | 69ec72b990a4 |
children |
line wrap: on
line diff
--- a/pytouhou/vm/common.py +++ b/pytouhou/vm/common.py @@ -16,9 +16,9 @@ class MetaRegistry(type): def __new__(mcs, name, bases, classdict): instruction_handlers = {} - for item in classdict.itervalues(): + for item in classdict.values(): if hasattr(item, '_instruction_ids'): - for version, instruction_ids in item._instruction_ids.iteritems(): + for version, instruction_ids in item._instruction_ids.items(): for id_ in instruction_ids: instruction_handlers.setdefault(version, {})[id_] = item classdict['_handlers'] = instruction_handlers