diff options
author | John Snow <jsnow@redhat.com> | 2020-05-13 23:52:30 -0400 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-05-31 18:25:07 +0200 |
commit | 2d110c11497ac52d5ce9f4b116463cdb8c3f4ad5 (patch) | |
tree | faf409f8ecaefb379907700e69938a5dfbe459fe /tests/qemu-iotests/nbd-fault-injector.py | |
parent | c7b942d7f84ef54f266921bf7668d43f1f2c7c79 (diff) | |
download | qemu-2d110c11497ac52d5ce9f4b116463cdb8c3f4ad5.zip qemu-2d110c11497ac52d5ce9f4b116463cdb8c3f4ad5.tar.gz qemu-2d110c11497ac52d5ce9f4b116463cdb8c3f4ad5.tar.bz2 |
python: remove more instances of sys.version_info
We guarantee 3.5+ everywhere; remove more dead checks. In general, try
to avoid using version checks and instead prefer to attempt behavior
when possible.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200514035230.25756-1-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/nbd-fault-injector.py')
-rwxr-xr-x | tests/qemu-iotests/nbd-fault-injector.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/qemu-iotests/nbd-fault-injector.py b/tests/qemu-iotests/nbd-fault-injector.py index 588d62a..78f42c4 100755 --- a/tests/qemu-iotests/nbd-fault-injector.py +++ b/tests/qemu-iotests/nbd-fault-injector.py @@ -47,10 +47,7 @@ import sys import socket import struct import collections -if sys.version_info.major >= 3: - import configparser -else: - import ConfigParser as configparser +import configparser FAKE_DISK_SIZE = 8 * 1024 * 1024 * 1024 # 8 GB |