diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-11-03 09:48:45 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-09 22:05:56 +0000 |
commit | 70a98f99dbd989d246b071f12ea400566f20508c (patch) | |
tree | 5bac4194ae0ccab02de01fce5c686de3d6068697 /python/t/010-basic.py | |
parent | a31bebe46fbf4fde1ab4f39ae349a6e9497fb706 (diff) | |
download | libguestfs-70a98f99dbd989d246b071f12ea400566f20508c.tar.gz libguestfs-70a98f99dbd989d246b071f12ea400566f20508c.tar.xz libguestfs-70a98f99dbd989d246b071f12ea400566f20508c.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/t/010-basic.py')
0 files changed, 0 insertions, 0 deletions