electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4f70da6e15a9bf922337229e30166bd246847695
parent 89871a835eedcdf82dc264bf46ad4605f426097a
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 27 Mar 2019 18:09:26 +0100

make sure DeprecationWarnings are shown

Diffstat:
Mrun_electrum | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/run_electrum b/run_electrum @@ -25,6 +25,7 @@ # SOFTWARE. import os import sys +import warnings MIN_PYTHON_VERSION = "3.6.1" # FIXME duplicated from setup.py @@ -34,6 +35,7 @@ _min_python_version_tuple = tuple(map(int, (MIN_PYTHON_VERSION.split(".")))) if sys.version_info[:3] < _min_python_version_tuple: sys.exit("Error: Electrum requires Python version >= %s..." % MIN_PYTHON_VERSION) +warnings.simplefilter('default', DeprecationWarning) script_dir = os.path.dirname(os.path.realpath(__file__)) is_bundle = getattr(sys, 'frozen', False) @@ -319,7 +321,10 @@ if __name__ == '__main__': config_options['electrum_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum_data') # kivy sometimes freezes when we write to sys.stderr - set_verbosity(config_options.get('verbosity') if config_options.get('gui') != 'kivy' else '') + log_verbosity = config_options.get('verbosity') if config_options.get('gui') != 'kivy' else '' + set_verbosity(log_verbosity) + if not log_verbosity: + warnings.simplefilter('ignore', DeprecationWarning) # check uri uri = config_options.get('url')