Skip to content

Commit 3cf8f3e

Browse files
committed
Merge pull request #2 from dliessi/fix-#1
fix #1
2 parents fb51f43 + fb5721e commit 3cf8f3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def pkg_config(package, attrs=None, include_only=False):
8383
return attrs
8484
flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
8585
# for python3 turn bytes back to string
86-
if sys.version_info.major > 2:
86+
if sys.version_info[0] > 2:
8787
output = output.decode('utf-8')
8888
for flag in shlex.split(output):
8989
option, path = flag[:2], flag[2:]
@@ -99,7 +99,7 @@ def pkg_config_version(package):
9999
try:
100100
output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
101101
# for python3 turn bytes back to string
102-
if sys.version_info.major > 2:
102+
if sys.version_info[0] > 2:
103103
output = output.decode('utf-8')
104104
return tuple(map(int, re.findall(r'\d+', output)))
105105
except OSError:

0 commit comments

Comments
 (0)