diff pytouhou/vm/anmrunner.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 e4c9eafab6d0
children
line wrap: on
line diff
--- a/pytouhou/vm/anmrunner.py
+++ b/pytouhou/vm/anmrunner.py
@@ -21,8 +21,7 @@ from pytouhou.vm.common import MetaRegis
 logger = get_logger(__name__)
 
 
-class ANMRunner(object):
-    __metaclass__ = MetaRegistry
+class ANMRunner(metaclass=MetaRegistry):
     __slots__ = ('_anm', '_sprite', 'running', 'sprite_index_offset', 'script',
                  'instruction_pointer', 'frame', 'waiting', 'handlers',
                  'variables', 'version', 'timeout')