Reviewed: https://review.openstack.org/52255 Committed: http://github.com/openstack/python-novaclient/commit/362cb18cb4b31da0c4a48ee47318e53a3d9f3d38 Submitter: Jenkins Branch: master
commit 362cb18cb4b31da0c4a48ee47318e53a3d9f3d38 Author: fujioka yuuichi <email address hidden> Date: Thu Oct 17 09:54:54 2013 +0900
Apply six for metaclass
The way to using metaclass has changed in Python3.
Python 2.7 way:
class Foo(object): __metaclass__ = FooMeta
Python 3 way:
class Foo(object, metaclass=FooMeta): ...
The six.add_metaclass() decorator allows us to use one syntax that works for both Python 2.7 and Python 3.
Change-Id: Ibd31a9f91bac6ec220d802f16c77ee0306e211b3 Closes-Bug: #1236648
Reviewed: https:/ /review. openstack. org/52255 github. com/openstack/ python- novaclient/ commit/ 362cb18cb4b31da 0c4a48ee47318e5 3a3d9f3d38
Committed: http://
Submitter: Jenkins
Branch: master
commit 362cb18cb4b31da 0c4a48ee47318e5 3a3d9f3d38
Author: fujioka yuuichi <email address hidden>
Date: Thu Oct 17 09:54:54 2013 +0900
Apply six for metaclass
The way to using metaclass has changed in Python3.
Python 2.7 way:
class Foo(object):
__metaclass__ = FooMeta
Python 3 way:
class Foo(object, metaclass=FooMeta):
...
The six.add_metaclass() decorator allows us to use one syntax that
works for both Python 2.7 and Python 3.
Change-Id: Ibd31a9f91bac6e c220d802f16c77e e0306e211b3
Closes-Bug: #1236648