CI: chase Python deprecations in ConfigParser
This commit is contained in:
parent
36789d23fb
commit
b1f9d1334c
@ -14,8 +14,8 @@ def get_tx_credentials():
|
|||||||
txconfig_name = os.path.expanduser("~/.transifexrc")
|
txconfig_name = os.path.expanduser("~/.transifexrc")
|
||||||
try:
|
try:
|
||||||
with open(txconfig_name, "r") as f:
|
with open(txconfig_name, "r") as f:
|
||||||
parser = configparser.SafeConfigParser()
|
parser = configparser.ConfigParser()
|
||||||
parser.readfp(f)
|
parser.read_file(f)
|
||||||
|
|
||||||
return parser.get("https://www.transifex.com", "password")
|
return parser.get("https://www.transifex.com", "password")
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user