Skip to content

Commit

Permalink
Merge pull request #1489 from johnxhobbs/patch-1
Browse files Browse the repository at this point in the history
avoid sys.version in config.py
  • Loading branch information
t-kalinowski authored Oct 6, 2023
2 parents e1df4e5 + c4db974 commit afb0a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

# The 'sysconfig' module is only available with Python 2.7 and newer, but
# an equivalent module in 'distutils' is available for Python 2.6.
if sys.version < '2.7':
if sys.version_info < (2, 7):
from distutils import sysconfig
else:
import sysconfig

# The 'imp' module is deprecated since Python 3.4, and the use of
# 'importlib' is recommended instead.
if sys.version < '3.4':
if sys.version_info < (3, 4):
import imp
def module_path(name):
if name in sys.builtin_module_names:
Expand Down

0 comments on commit afb0a22

Please sign in to comment.