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>
This commit is contained in:
John Snow 2020-05-13 23:52:30 -04:00 committed by Philippe Mathieu-Daudé
parent c7b942d7f8
commit 2d110c1149
5 changed files with 13 additions and 30 deletions

View file

@ -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