Skip to content
Snippets Groups Projects
Commit f00e96e7 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

fixes to python version check

parent 7b71792d
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ def _update_wrapper(wrapper, wrapped, *args, **kwargs):
wrapper = functools.update_wrapper(wrapper, wrapped, *args, **kwargs)
# Python >= 3.4 does things right
if sys.version_info[0] * 10 + sys.version_info[1] < 3.4:
if (sys.version_info[0] * 10 + sys.version_info[1]) < 34:
wrapper.__wrapped__ = wrapped
return wrapper
......@@ -57,7 +57,7 @@ def _unwrap(func):
"""
# Python >= 3.4 has an inspect.unwrap function
if sys.version_info[0] * 10 + sys.version_info[1] < 3.4:
if (sys.version_info[0] * 10 + sys.version_info[1]) >= 34:
return inspect.unwrap(func)
# Otherwise we follow the __wrapped__ chain ourselves
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment