Runnable with both Python3 and Python2, with both PyQt5 and PyQt4 by using Qt.py #2250
|
@ -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):
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user