Runnable with both Python3 and Python2, with PyQt4 #2249

Open
kashikoibumi wants to merge 59 commits from kashikoibumi/py3 into v0.6
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 8bfcc4cf38 - Show all commits

View File

@ -30,6 +30,7 @@ from tr import _translate
try: try:
SafeConfigParser = configparser.SafeConfigParser SafeConfigParser = configparser.SafeConfigParser
except AttributeError: except AttributeError:
# alpine linux, python3.12
SafeConfigParser = configparser.ConfigParser SafeConfigParser = configparser.ConfigParser
def getSOCKSProxyType(config): def getSOCKSProxyType(config):

View File

@ -18,6 +18,7 @@ except ImportError:
try: try:
SafeConfigParser = configparser.SafeConfigParser SafeConfigParser = configparser.SafeConfigParser
except AttributeError: except AttributeError:
# alpine linux, python3.12
SafeConfigParser = configparser.ConfigParser SafeConfigParser = configparser.ConfigParser
config_ready = Event() config_ready = Event()