diff options
author | Simon McVittie <smcv@debian.org> | 2016-08-11 10:15:01 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2016-08-11 10:15:01 +0100 |
commit | 167200cef749be40b3d3624cfb86a5928aeca522 (patch) | |
tree | 6fa3088bcbb0982acfe5cb179b4b85870c79bbd8 /dbus | |
parent | 1013581fef91c9be087d6264084cec34c2ca6e9a (diff) |
Drop support for Python 2.6, along with several workarounds
It hasn't had security support for about 3 years.
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/_compat.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dbus/_compat.py b/dbus/_compat.py index 45a0c97..62bbe28 100644 --- a/dbus/_compat.py +++ b/dbus/_compat.py @@ -2,7 +2,5 @@ import sys -# In Python 2.6, sys.version_info is not a namedtuple, so we can't use -# sys.version_info.major. -is_py3 = (sys.version_info[0] == 3) +is_py3 = (sys.version_info.major == 3) is_py2 = not is_py3 |