CI: chase Python deprecations in ConfigParser

This commit is contained in:
Adriaan de Groot 2019-06-17 16:07:06 +02:00
parent 36789d23fb
commit b1f9d1334c

View File

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