diff options
| author | Isidoro Ghezzi <[email protected]> | 2018-08-13 14:04:44 +0200 |
|---|---|---|
| committer | Isidoro Ghezzi <[email protected]> | 2018-08-13 14:08:45 +0200 |
| commit | 49e56625aa2e102472f782e7421a332b4f438f54 (patch) | |
| tree | f8d110bb6d59116b2a34afc9835c87c5b43ab0c8 /test/util | |
| parent | Merge #13905: docs: fixed bitcoin-cli -help output for help2man (diff) | |
| download | discoin-49e56625aa2e102472f782e7421a332b4f438f54.tar.xz discoin-49e56625aa2e102472f782e7421a332b4f438f54.zip | |
fix deprecation in bitcoin-util-test.py
To avoid:
$ make check
{…omissis…}
Running test/util/bitcoin-util-test.py...
/usr/local/bin/python3.7 ../test/util/bitcoin-util-test.py
../test/util/bitcoin-util-test.py:31: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead.
config.readfp(open(os.path.join(os.path.dirname(__file__), "../config.ini"), encoding="utf8"))
$ python3 --version
Python 3.7.0
Diffstat (limited to 'test/util')
| -rwxr-xr-x | test/util/bitcoin-util-test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/bitcoin-util-test.py b/test/util/bitcoin-util-test.py index 16371a623..92fef30e1 100755 --- a/test/util/bitcoin-util-test.py +++ b/test/util/bitcoin-util-test.py @@ -28,7 +28,7 @@ import sys def main(): config = configparser.ConfigParser() config.optionxform = str - config.readfp(open(os.path.join(os.path.dirname(__file__), "../config.ini"), encoding="utf8")) + config.read_file(open(os.path.join(os.path.dirname(__file__), "../config.ini"), encoding="utf8")) env_conf = dict(config.items('environment')) parser = argparse.ArgumentParser(description=__doc__) |