diff options
author | Adriaan de Groot <groot@kde.org> | 2019-06-17 16:07:06 +0200 |
---|---|---|
committer | Adriaan de Groot <groot@kde.org> | 2019-06-17 16:07:06 +0200 |
commit | b1f9d1334c8d0b92f6cb32b308f3379e7bd1d4c7 (patch) | |
tree | 1bf4c162b623853f8d0d2ef6efdeedfedf4ec63b | |
parent | 36789d23fb7a6e66b38af17aa5fec99fbb6b1fd6 (diff) |
CI: chase Python deprecations in ConfigParser
-rw-r--r-- | ci/txstats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/txstats.py b/ci/txstats.py index 39ec65575..1304c8265 100644 --- a/ci/txstats.py +++ b/ci/txstats.py @@ -14,8 +14,8 @@ def get_tx_credentials(): txconfig_name = os.path.expanduser("~/.transifexrc") try: with open(txconfig_name, "r") as f: - parser = configparser.SafeConfigParser() - parser.readfp(f) + parser = configparser.ConfigParser() + parser.read_file(f) return parser.get("https://www.transifex.com", "password") except IOError as e: |