diff options
| author | MarcoFalke <[email protected]> | 2018-08-13 09:53:06 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-08-13 09:53:08 -0400 |
| commit | 6edda062dc3c243604820867193725bfefea6015 (patch) | |
| tree | fca58232be8805920bb4801c68d2874a3eff8f79 | |
| parent | Merge #13955: gitian: bump descriptors for (0.)18 (diff) | |
| parent | fix deprecation in bitcoin-util-test.py (diff) | |
| download | discoin-6edda062dc3c243604820867193725bfefea6015.tar.xz discoin-6edda062dc3c243604820867193725bfefea6015.zip | |
Merge #13953: fix deprecation in bitcoin-util-test.py
49e56625aa fix deprecation in bitcoin-util-test.py (Isidoro Ghezzi)
Pull request description:
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
Tree-SHA512: eafed629b64ae32b0b84520bb9b430204cba38d426dab1b3946a92c758c7d599aacc2798ab6e126808a6c7515ff20eb4ecc635b3e424f4c8903105438f817297
| -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__) |