summaryrefslogtreecommitdiffstats
path: root/python/guestfs-py.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-03 09:48:45 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-09 22:12:43 +0000
commitecf483ac8e7cdf7145831b16ae98db3ec943ebc7 (patch)
tree4ab5b89b96174291e4c2a5d6763da607247b2ccd /python/guestfs-py.c
parent49d80c6831ccb7fd949840bf9777129b7ce187bb (diff)
downloadlibguestfs-ecf483ac8e7cdf7145831b16ae98db3ec943ebc7.tar.gz
libguestfs-ecf483ac8e7cdf7145831b16ae98db3ec943ebc7.tar.xz
libguestfs-ecf483ac8e7cdf7145831b16ae98db3ec943ebc7.zip
python: Use sys.version_info[0] instead of sys.version_info.major.
The major/minor fields only exist in Python >= 2.7. This works for at least Python 2.5 and 2.6. Thanks to Hilko Bengen. This updates commit 646142f5136da9cfe2b908703a822c53350f70e9. (cherry picked from commit 31e5539a14f78d8815d0d930e91023a65b5395e7)
Diffstat (limited to 'python/guestfs-py.c')
0 files changed, 0 insertions, 0 deletions