Reviewed: https://review.openstack.org/365193 Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=2a0d010f5a9e22042ed1ab0b194484663fa55766 Submitter: Jenkins Branch: master
commit 2a0d010f5a9e22042ed1ab0b194484663fa55766 Author: Ji-Wei <email address hidden> Date: Sat Sep 3 12:32:51 2016 +0800
Raise NotImplementedError instead of NotImplemented
NotImplementedError is the name of the exception (https://docs.python.org/2/library/exceptions.html). NotImplemented is the name of a constant (https://docs.python.org/2/library/constants.html).
>>> raise NotImplemented() Traceback (most recent call last): File "<pyshell#31>", line 1, in <module> raise NotImplemented() TypeError: 'NotImplementedType' object is not callable >>> raise NotImplementedError() Traceback (most recent call last): File "<pyshell#32>", line 1, in <module> raise NotImplementedError() NotImplementedError
This patch fix it.
Change-Id: Ia8bf7d75cd7f70e503b9669fc60ea9d89642489b Closes-Bug: #1339855
Reviewed: https:/ /review. openstack. org/365193 /git.openstack. org/cgit/ openstack/ python- fuelclient/ commit/ ?id=2a0d010f5a9 e22042ed1ab0b19 4484663fa55766
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2a0d010f5a9e220 42ed1ab0b194484 663fa55766
Author: Ji-Wei <email address hidden>
Date: Sat Sep 3 12:32:51 2016 +0800
Raise NotImplementedError instead of NotImplemented
NotImplemen tedError is the name of the exception /docs.python. org/2/library/ exceptions. html). /docs.python. org/2/library/ constants. html).
(https:/
NotImplemented is the name of a constant
(https:/
>>> raise NotImplemented() Type' object is not callable rror() rror() tedError
Traceback (most recent call last):
File "<pyshell#31>", line 1, in <module>
raise NotImplemented()
TypeError: 'NotImplemented
>>> raise NotImplementedE
Traceback (most recent call last):
File "<pyshell#32>", line 1, in <module>
raise NotImplementedE
NotImplemen
This patch fix it.
Change-Id: Ia8bf7d75cd7f70 e503b9669fc60ea 9d89642489b
Closes-Bug: #1339855