From 247b3ee51db0b3cdefafc69c8abd736fd78c7ca8 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 3 Sep 2024 16:34:25 +0900 Subject: [PATCH] Remove logic for Python < 3 ... because Python 2 support was removed long ago. Change-Id: I5ac3c2d3d41651274abc98435180efadad3dffd1 --- cloudkittyclient/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cloudkittyclient/utils.py b/cloudkittyclient/utils.py index 8a71155..e6356a7 100644 --- a/cloudkittyclient/utils.py +++ b/cloudkittyclient/utils.py @@ -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)