Remove logic for Python < 3

... because Python 2 support was removed long ago.

Change-Id: I5ac3c2d3d41651274abc98435180efadad3dffd1
This commit is contained in:
Takashi Kajinami
2024-09-03 16:34:25 +09:00
parent 79a4606ce2
commit 247b3ee51d

View File

@@ -13,7 +13,6 @@
# under the License.
#
import inspect
import sys
import pbr.version
@@ -82,11 +81,6 @@ def format_http_errors(ignore):
"""
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):
# This avoids decorating functions of parent classes
return (inspect.isfunction(item)