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
Reviewed: https:/ /review. openstack. org/365196 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=5a49379b349 dc33f403cfdcfd6 148dfa362512de
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5a49379b349dc33 f403cfdcfd6148d fa362512de
Author: Ji-Wei <email address hidden>
Date: Sat Sep 3 13:03:13 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#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: I36292e5ee18bd7 92205a8ff527f4a e9705c61b61
Closes-Bug: #1339855