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#0>", line 1, in <module>
raise NotImplemented()
TypeError: 'NotImplementedType' object is not callable
>>> raise NotImplementedError()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
raise NotImplementedError()
NotImplementedError
This patch fix it.
Reviewed: https:/ /review. openstack. org/367735 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=2a662465361 e31dbf230d59718 2f9f7fd8b61183
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2a662465361e31d bf230d597182f9f 7fd8b61183
Author: Ji-Wei <email address hidden>
Date: Fri Sep 9 13:06:26 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). Type' object is not callable rror() rror() tedError
(https:/
NotImplemented is the name of a constant
(https:/
>>> raise NotImplemented()
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
raise NotImplemented()
TypeError: 'NotImplemented
>>> raise NotImplementedE
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
raise NotImplementedE
NotImplemen
This patch fix it.
Change-Id: I939eaa4b4b7c57 4f7a6447725e3a6 ad5b128f1b7
Closes-Bug: #1339855