Skip to content

Commit 247b3ee

Browse files
committed
Remove logic for Python < 3
... because Python 2 support was removed long ago. Change-Id: I5ac3c2d3d41651274abc98435180efadad3dffd1
1 parent 79a4606 commit 247b3ee

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

cloudkittyclient/utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# under the License.
1414
#
1515
import inspect
16-
import sys
1716

1817
import pbr.version
1918

@@ -82,11 +81,6 @@ def format_http_errors(ignore):
8281
"""
8382

8483
def wrap(cls):
85-
# If you want pretty errors, use python3.
86-
# __qualname__ does not exist in python 2
87-
if sys.version_info.major < 3:
88-
return cls
89-
9084
def predicate(item):
9185
# This avoids decorating functions of parent classes
9286
return (inspect.isfunction(item)

0 commit comments

Comments
 (0)