mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
CI: chase Python deprecations in ConfigParser
This commit is contained in:
parent
36789d23fb
commit
b1f9d1334c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue