Remove logic for Python < 3
... because Python 2 support was removed long ago. Change-Id: I5ac3c2d3d41651274abc98435180efadad3dffd1
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
import inspect
|
import inspect
|
||||||
import sys
|
|
||||||
|
|
||||||
import pbr.version
|
import pbr.version
|
||||||
|
|
||||||
@@ -82,11 +81,6 @@ def format_http_errors(ignore):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def wrap(cls):
|
def wrap(cls):
|
||||||
# If you want pretty errors, use python3.
|
|
||||||
# __qualname__ does not exist in python 2
|
|
||||||
if sys.version_info.major < 3:
|
|
||||||
return cls
|
|
||||||
|
|
||||||
def predicate(item):
|
def predicate(item):
|
||||||
# This avoids decorating functions of parent classes
|
# This avoids decorating functions of parent classes
|
||||||
return (inspect.isfunction(item)
|
return (inspect.isfunction(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user