Blame dbus/_compat.py

Packit 130fc8
# Python 2 / Python 3 compatibility helpers.
Packit 130fc8
Packit 130fc8
import sys
Packit 130fc8
Packit 130fc8
# In Python 2.6, sys.version_info is not a namedtuple, so we can't use
Packit 130fc8
# sys.version_info.major.
Packit 130fc8
is_py3 = (sys.version_info[0] == 3)
Packit 130fc8
is_py2 = not is_py3