Reviewed: https://review.openstack.org/52254 Committed: http://github.com/openstack/python-keystoneclient/commit/9b6533bbc021854deb3528fd52129b336169b483 Submitter: Jenkins Branch: master
commit 9b6533bbc021854deb3528fd52129b336169b483 Author: fujioka yuuichi <email address hidden> Date: Thu Oct 17 09:41:01 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: I08703a8b2927f45f4705fe085368d1ebd78b02fa Closes-Bug: #1236648
Reviewed: https:/ /review. openstack. org/52254 github. com/openstack/ python- keystoneclient/ commit/ 9b6533bbc021854 deb3528fd52129b 336169b483
Committed: http://
Submitter: Jenkins
Branch: master
commit 9b6533bbc021854 deb3528fd52129b 336169b483
Author: fujioka yuuichi <email address hidden>
Date: Thu Oct 17 09:41:01 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: I08703a8b2927f4 5f4705fe085368d 1ebd78b02fa
Closes-Bug: #1236648