Skip to content

Commit

Permalink
Fix build error on Python 2.6
Browse files Browse the repository at this point in the history
In Python 2.6, sys.version_info does not return a named tuple, resulting in a stacktrace.

Tested on Python 2.6, 2.7 and 3.x
  • Loading branch information
Mike Place committed Dec 16, 2015
1 parent d29eabf commit 40fba2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
version = '0.4.3'

# Dnspython is two different packages depending on python version
if sys.version_info.major == 2:
if sys.version_info[0] == 2:
dns = 'dnspython'
else:
dns = 'dnspython3'
Expand Down

0 comments on commit 40fba2a

Please sign in to comment.