electrum

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

commit bdb6d65cf7322a56e0f6ffb388995f5ad33f9932
parent 4f70da6e15a9bf922337229e30166bd246847695
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 27 Mar 2019 18:41:42 +0100

fix some DeprecationWarnings

Diffstat:
Melectrum/util.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/electrum/util.py b/electrum/util.py @@ -762,7 +762,7 @@ def parse_URI(uri: str, on_pr: Callable=None) -> dict: out['address'] = address if 'amount' in out: am = out['amount'] - m = re.match('([0-9\.]+)X([0-9])', am) + m = re.match(r'([0-9.]+)X([0-9])', am) if m: k = int(m.group(2)) - 8 amount = Decimal(m.group(1)) * pow( Decimal(10) , k) @@ -965,10 +965,10 @@ def make_aiohttp_session(proxy: Optional[dict], headers=None, timeout=None): username=proxy.get('user', None), password=proxy.get('password', None), rdns=True, - ssl_context=ssl_context, + ssl=ssl_context, ) else: - connector = aiohttp.TCPConnector(ssl_context=ssl_context) + connector = aiohttp.TCPConnector(ssl=ssl_context) return aiohttp.ClientSession(headers=headers, timeout=timeout, connector=connector)