summaryrefslogtreecommitdiffstats
path: root/python/t/010-basic.py
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-02 18:18:14 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-09 22:05:20 +0000
commit8ad0974099128748800a86813179bb184c7b0531 (patch)
treef0c0d9dc935c0da2467c441ba69ddd28fdd31a74 /python/t/010-basic.py
parent7194dae8bc96077a7cfe5b39288448af3c58b3e5 (diff)
downloadlibguestfs-8ad0974099128748800a86813179bb184c7b0531.tar.gz
libguestfs-8ad0974099128748800a86813179bb184c7b0531.tar.xz
libguestfs-8ad0974099128748800a86813179bb184c7b0531.zip
python: Correctly check for Python major/minor.
The manual for sys.version warns that you should not parse the string, which we were doing. It would have failed on python "2.10" or similar. Do it correctly using the sys.version_info struct instead. (cherry picked from commit 646142f5136da9cfe2b908703a822c53350f70e9)
Diffstat (limited to 'python/t/010-basic.py')
0 files changed, 0 insertions, 0 deletions