From 253a104e8c10b8dc0738f232d72faefde5220828 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 15 Sep 2026 10:51:03 +0000 Subject: [PATCH] whitespace (hanging closing curly bracket [22 files]) --- examples/coin-daemon-info.py | 3 +- mmgen/addr.py | 3 +- mmgen/proto/rune/tx/protobuf.py | 3 +- test/cmdtest_d/automount.py | 3 +- test/cmdtest_d/ethdev.py | 3 +- test/cmdtest_d/ethswap.py | 3 +- test/cmdtest_d/httpd/thornode/swap.py | 3 +- test/cmdtest_d/input.py | 6 ++-- test/cmdtest_d/main.py | 6 ++-- test/cmdtest_d/ref_3seed.py | 3 +- test/cmdtest_d/regtest.py | 6 ++-- test/cmdtest_d/rune.py | 3 +- test/cmdtest_d/runeswap.py | 3 +- test/cmdtest_d/swap.py | 3 +- test/hashfunc.py | 3 +- test/modtest_d/addrlist.py | 3 +- test/modtest_d/bip_hd.py | 3 +- test/modtest_d/misc.py | 4 +-- test/modtest_d/scrypt.py | 3 +- test/modtest_d/util.py | 32 ++++++++----------- test/objattrtest.py | 3 +- .../mmgen/swap/proto/thorchain/asset.py | 11 +++---- 22 files changed, 41 insertions(+), 72 deletions(-) diff --git a/examples/coin-daemon-info.py b/examples/coin-daemon-info.py index e19d4cad..7ce3faf8 100755 --- a/examples/coin-daemon-info.py +++ b/examples/coin-daemon-info.py @@ -52,8 +52,7 @@ async def main(coins): for coin in coins: cfg_in = { 'coin': coin, - 'test_suite': test_suite, - } + 'test_suite': test_suite} if coin == 'eth' and not test_suite: cfg_in.update({'daemon_id': 'geth'}) cfgs[coin] = Config(cfg_in) diff --git a/mmgen/addr.py b/mmgen/addr.py index c47ec58e..49632d88 100755 --- a/mmgen/addr.py +++ b/mmgen/addr.py @@ -89,8 +89,7 @@ def is_mmgen_addrtype(proto, id_str): class MMGenPasswordType(MMGenAddrType): mmtypes = { - 'P': ati('password', 'password', None, None, None, None, None, 'Password generated from MMGen seed') - } + 'P': ati('password', 'password', None, None, None, None, None, 'Password generated from MMGen seed') } class AddrIdx(MMGenIdx): max_digits = 7 diff --git a/mmgen/proto/rune/tx/protobuf.py b/mmgen/proto/rune/tx/protobuf.py index 3a4fee88..3fa5aa39 100755 --- a/mmgen/proto/rune/tx/protobuf.py +++ b/mmgen/proto/rune/tx/protobuf.py @@ -119,8 +119,7 @@ class Messages: # MsgDeposit{ # Coins: coins, # Memo: memo, - # Signer: signer, - # } + # Signer: signer} @dataclass class Body(BaseMessage): coins: Annotated[list[CoinWithAsset], Field(1)] diff --git a/test/cmdtest_d/automount.py b/test/cmdtest_d/automount.py index e9363ae5..ea1d84cc 100755 --- a/test/cmdtest_d/automount.py +++ b/test/cmdtest_d/automount.py @@ -26,8 +26,7 @@ class CmdTestAutosignAutomount(CmdTestAutosignThreaded, CmdTestRegtest): keylist_passwd = 'abc' rt_data = { - 'rtFundAmt': {'btc':'500', 'bch':'500', 'ltc':'5500'}, - } + 'rtFundAmt': {'btc':'500', 'bch':'500', 'ltc':'5500'} } bal1_chk = { 'btc': '502.46', 'bch': '502.46', diff --git a/test/cmdtest_d/ethdev.py b/test/cmdtest_d/ethdev.py index c110a039..6ce4c7f1 100755 --- a/test/cmdtest_d/ethdev.py +++ b/test/cmdtest_d/ethdev.py @@ -716,8 +716,7 @@ class CmdTestEthdev(CmdTestEthdevMethods, CmdTestBase, CmdTestShared): ('twview6', 'twview (balance reduced after address removal)'), ('remove_addr2', f'removing addr #{del_addrs[1]} from {coin} tracking wallet'), ('token_remove_addr1', f'removing addr #{del_addrs[0]} from {coin} token tracking wallet'), - ('token_remove_addr2', f'removing addr #{del_addrs[1]} from {coin} token tracking wallet'), - ), + ('token_remove_addr2', f'removing addr #{del_addrs[1]} from {coin} token tracking wallet')) } def __init__(self, cfg, trunner, cfgs, spawn): diff --git a/test/cmdtest_d/ethswap.py b/test/cmdtest_d/ethswap.py index ffee13e5..b766a6da 100755 --- a/test/cmdtest_d/ethswap.py +++ b/test/cmdtest_d/ethswap.py @@ -243,8 +243,7 @@ class CmdTestEthSwap(CmdTestSwapMethods, CmdTestRegtest): ('eth_swaptxsend5a', ''), ('eth_swaptxsend5b', ''), ('eth_swaptxsend5', ''), - ('eth_etherscan_server_stop', ''), - ), + ('eth_etherscan_server_stop', '')) } exec(create_cross_methods(cross_coin, cross_group, cmd_group_in, cmd_subgroups)) diff --git a/test/cmdtest_d/httpd/thornode/swap.py b/test/cmdtest_d/httpd/thornode/swap.py index 262974cd..b48e043d 100755 --- a/test/cmdtest_d/httpd/thornode/swap.py +++ b/test/cmdtest_d/httpd/thornode/swap.py @@ -148,8 +148,7 @@ class ThornodeSwapServer(ThornodeServer): data = data_template | { 'recommended_min_amount_in': str(int(70 * 10**8 / prices[send_asset])), # $70 'expected_amount_out': str(out_amt.to_unit('satoshi')), - 'expiry': int(time.time()) + (10 * 60), - } + 'expiry': int(time.time()) + (10 * 60)} if send_asset != 'RUNE': send_proto = init_proto(self.cfg, send_chain, network='regtest', need_amt=True) diff --git a/test/cmdtest_d/input.py b/test/cmdtest_d/input.py index 142e37b1..5b5b3a5a 100755 --- a/test/cmdtest_d/input.py +++ b/test/cmdtest_d/input.py @@ -291,8 +291,7 @@ class CmdTestInput(CmdTestBase): 'prompt': '', 'immed_chars': '', 'prehold_protect': True, - 'num_bytes': 5, - } + 'num_bytes': 5} return self._input_func('get_char', arg_dfls, func_args, text, expect, term) def _line_input(self, func_args, text, expect, term, delay=None): @@ -300,8 +299,7 @@ class CmdTestInput(CmdTestBase): 'prompt': '', # positional 'echo': True, 'insert_txt': '', - 'hold_protect': True, - } + 'hold_protect': True} return self._input_func('line_input', arg_dfls, func_args, text+'\n', expect, term, delay=delay) def get_char1(self): diff --git a/test/cmdtest_d/main.py b/test/cmdtest_d/main.py index d5f2cfa0..7ce102b9 100755 --- a/test/cmdtest_d/main.py +++ b/test/cmdtest_d/main.py @@ -582,8 +582,7 @@ class CmdTestMain(CmdTestBase, CmdTestShared): 'address': coinaddr, 'spendable': False, 'scriptPubKey': f'{s_beg}{coinaddr.bytes.hex()}{s_end}', - 'confirmations': getrandnum(3) // 20 # max: 838860 (6 digits) - } + 'confirmations': getrandnum(3) // 20} # max: 838860 (6 digits) return ret def _create_fake_unspent_data( @@ -645,8 +644,7 @@ class CmdTestMain(CmdTestBase, CmdTestShared): 'chk': al.chksum, 'al_id': al.al_id, 'addr_idxs': aix[-2:], - 'segwit': self.cfgs[s]['segwit'] - } + 'segwit': self.cfgs[s]['segwit']} return ad, tx_data def _make_txcreate_outputs(self, tx_data, single_output): diff --git a/test/cmdtest_d/ref_3seed.py b/test/cmdtest_d/ref_3seed.py index 9aca02ec..cd5d4604 100755 --- a/test/cmdtest_d/ref_3seed.py +++ b/test/cmdtest_d/ref_3seed.py @@ -48,8 +48,7 @@ class CmdTestRef3Seed(CmdTestBase, CmdTestShared): pass_idx_list_in = '1,4,9-11,1100' chk_data = { 'lens': (128, 192, 256), - 'sids': ('FE3C6545', '1378FC64', '98831F3A'), - } + 'sids': ('FE3C6545', '1378FC64', '98831F3A')} shared_deps = ['mmdat', pwfile] skip_cmds = ( 'ref_xmrseed_25_passwdgen_1', diff --git a/test/cmdtest_d/regtest.py b/test/cmdtest_d/regtest.py index 00774d50..49901277 100755 --- a/test/cmdtest_d/regtest.py +++ b/test/cmdtest_d/regtest.py @@ -157,8 +157,7 @@ rt_data = { 'rtAmts': { 'btc': ('500', '500'), 'bch': ('500', '560'), - 'ltc': ('5500', '5500') - } + 'ltc': ('5500', '5500')} } class CmdTestRegtest(CmdTestBase, CmdTestShared): @@ -476,8 +475,7 @@ class CmdTestRegtest(CmdTestBase, CmdTestShared): 'address sorting', ('addrgen_bob_extra', 'generating Bob’s extra address'), ('addrimport_bob_extra', 'importing Bob’s extra address'), - ('bob_check_idx_sort', 'viewing Bob’s addresses (checking index sort order)'), - ), + ('bob_check_idx_sort', 'viewing Bob’s addresses (checking index sort order)')) } def __init__(self, cfg, trunner, cfgs, spawn): diff --git a/test/cmdtest_d/rune.py b/test/cmdtest_d/rune.py index 14493960..aac48336 100755 --- a/test/cmdtest_d/rune.py +++ b/test/cmdtest_d/rune.py @@ -106,8 +106,7 @@ class CmdTestRune(CmdTestRuneMethods, CmdTestEthdevMethods, CmdTestBase, CmdTest ('txsign1', 'signing the transaction'), ('txsend1_test', 'testing whether the transaction can be sent'), ('txsend1', 'sending the transaction'), - ('txhex1', 'dumping the transaction hex'), - ), + ('txhex1', 'dumping the transaction hex')) } def __init__(self, cfg, trunner, cfgs, spawn): diff --git a/test/cmdtest_d/runeswap.py b/test/cmdtest_d/runeswap.py index 0f080925..b79d232b 100755 --- a/test/cmdtest_d/runeswap.py +++ b/test/cmdtest_d/runeswap.py @@ -63,8 +63,7 @@ class CmdTestRuneSwap(CmdTestSwapMethods, CmdTestRegtest): ('rune_swaptxsend1', ''), ('rune_swaptxstatus1', ''), ('rune_swaptxreceipt1', ''), - ('rune_swaptxhex1', ''), - ), + ('rune_swaptxhex1', '')) } exec(create_cross_methods(cross_coin, cross_group, cmd_group_in, cmd_subgroups)) diff --git a/test/cmdtest_d/swap.py b/test/cmdtest_d/swap.py index 2fab8754..4de2700e 100755 --- a/test/cmdtest_d/swap.py +++ b/test/cmdtest_d/swap.py @@ -381,8 +381,7 @@ class CmdTestSwap( ('autosign_swaptxsend2', 'sending the transaction'), ('generate_ltc', 'generating a block'), ('swap_bal3', 'checking the balance'), - ('wait_loop_kill', 'stopping autosign wait loop'), - ), + ('wait_loop_kill', 'stopping autosign wait loop')) } def __init__(self, cfg, trunner, cfgs, spawn): diff --git a/test/hashfunc.py b/test/hashfunc.py index 8587870a..0d9c4f1d 100755 --- a/test/hashfunc.py +++ b/test/hashfunc.py @@ -102,8 +102,7 @@ class TestKeccak(TestHashFunc): '\x0a\x0d'*513: '187c8fa19c9ac5dedbe4a3078290120eb2f5f7b3b0cb4590cdfbebcfb37bf2b3', '\x00\x0f'*1024: '7aa8a949809ac159cb98fe947ddc40de05be9309aff563130d7d55afb4cc9e11', '\x0e\x0f'*1023: '5c82fa38e3d35efe65a392835be500ba62d0dfc9c0de28950cdeb5bc0d96689d', - '\x0a\x0d'*1025: 'bc99495fcaf4a987c421ff1cc5854b25786964ab863836b34c82a437a473f4c4', - } + '\x0a\x0d'*1025: 'bc99495fcaf4a987c421ff1cc5854b25786964ab863836b34c82a437a473f4c4'} def __init__(self): from mmgen.contrib.keccak import keccak_256 diff --git a/test/modtest_d/addrlist.py b/test/modtest_d/addrlist.py index 5f042791..b575ceac 100755 --- a/test/modtest_d/addrlist.py +++ b/test/modtest_d/addrlist.py @@ -41,8 +41,7 @@ def do_test( } if pw_id_str else { 'seed': seed, 'addr_idxs': idxs, - 'mmtype': mmtype, - } + 'mmtype': mmtype} if add_kwargs: kwargs.update(add_kwargs) diff --git a/test/modtest_d/bip_hd.py b/test/modtest_d/bip_hd.py index 6f86b5a6..e8a3e4fb 100755 --- a/test/modtest_d/bip_hd.py +++ b/test/modtest_d/bip_hd.py @@ -118,8 +118,7 @@ vectors_derive = { 'bech32': { 0: 'bc1qwg77fxw0tkmc3h58tcnnpegxk7mp3h6ly44d3n', 1: 'bc1q6g79y6kwpkufevv2njacvnqnsdxmen68jyvjde', - 2: 'bc1qknujpwlxc9e9e6avz50q5k90p552xy8g3qjd8u', - } + 2: 'bc1qknujpwlxc9e9e6avz50q5k90p552xy8g3qjd8u'} } # Source: bip_utils diff --git a/test/modtest_d/misc.py b/test/modtest_d/misc.py index 82eedadd..35c72dbe 100755 --- a/test/modtest_d/misc.py +++ b/test/modtest_d/misc.py @@ -75,9 +75,7 @@ class unit_tests: 'sweep_spec': ( vs('1:2', "('1', '2', None, None)"), vs('1:2,3', "('1', '2', '3', None)"), - vs('1:2,3:4', "('1', '2', '3', '4')"), - ), - } + vs('1:2,3:4', "('1', '2', '3', '4')"))} vmsg('') for k, v in uarg_info.items(): diff --git a/test/modtest_d/scrypt.py b/test/modtest_d/scrypt.py index b48282c9..6a0a2c9b 100755 --- a/test/modtest_d/scrypt.py +++ b/test/modtest_d/scrypt.py @@ -28,8 +28,7 @@ class unit_test: '4': 'a3a1b99393734510b68adf2c2cfdc627a2bc3281913d8ea6fbb677d39781a9fa', '5': '0c7e1a672738cee49cf0ff6f3208190ca418e741835fd6995ce9558cc19f3f04', '6': '91f9d1c9baf3948433dab58dcc912d96035392c1db21ede96d2f369e025ab06d', - '7': 'fcb2cd05268de43b0d2d45f78a56e5d446b0bd2d3b57bdbc77cc17a42942f1bd' - } + '7': 'fcb2cd05268de43b0d2d45f78a56e5d446b0bd2d3b57bdbc77cc17a42942f1bd'} pws = ( ('', 'cc8d99ce7365d8a9d2422d71ce330e130b2cade46a8cc0459a3f83e1a6ac3d30'), diff --git a/test/modtest_d/util.py b/test/modtest_d/util.py index 36031de7..788612be 100755 --- a/test/modtest_d/util.py +++ b/test/modtest_d/util.py @@ -15,8 +15,8 @@ class unit_tests: samples = { 'pids': [18234, 18444, 19324], - 'vardata': [None, True, 1234, 'sample string'], - } + 'vardata': [None, True, 1234, 'sample string']} + chks = { 'vardata': { None: "'None', 'True', '1234', 'sample string'", @@ -28,10 +28,7 @@ class unit_tests: 'min': "None,True,1234,sample string", 'repr': "None, True, 1234, 'sample string'", 'csv': "None,True,1234,'sample string'", - 'col': " + None\n + True\n + 1234\n + sample string", - } - - } + 'col': " + None\n + True\n + 1234\n + sample string"}} col1_w = max(len(str(e)) for e in next(iter(chks.values()))) + 1 @@ -67,20 +64,17 @@ class unit_tests: 'text': 'foo bar', 'stdin': None, 'offset': 123, - 'env': {}, - } - } + 'env': {}}} + chks = { - 'cmdline': { - None: "'cmd' (['ls', '-l']), 'text' (foo bar), 'stdin' (None), 'offset' (123), 'env' ({})", - 'dfl': "'cmd' (['ls', '-l']), 'text' (foo bar), 'stdin' (None), 'offset' (123), 'env' ({})", - 'square': "'cmd' [['ls', '-l']], 'text' [foo bar], 'stdin' [None], 'offset' [123], 'env' [{}]", - 'equal': "'cmd'=['ls', '-l'], 'text'=foo bar, 'stdin'=None, 'offset'=123, 'env'={}", - 'equal_spaced': "'cmd' = ['ls', '-l'], 'text' = foo bar, 'stdin' = None, 'offset' = 123, 'env' = {}", - 'kwargs': "cmd=['ls', '-l'], text='foo bar', stdin=None, offset=123, env={}", - 'colon': "cmd:['ls', '-l'], text:'foo bar', stdin:None, offset:123, env:{}", - } - } + 'cmdline': { + None: "'cmd' (['ls', '-l']), 'text' (foo bar), 'stdin' (None), 'offset' (123), 'env' ({})", + 'dfl': "'cmd' (['ls', '-l']), 'text' (foo bar), 'stdin' (None), 'offset' (123), 'env' ({})", + 'square': "'cmd' [['ls', '-l']], 'text' [foo bar], 'stdin' [None], 'offset' [123], 'env' [{}]", + 'equal': "'cmd'=['ls', '-l'], 'text'=foo bar, 'stdin'=None, 'offset'=123, 'env'={}", + 'equal_spaced': "'cmd' = ['ls', '-l'], 'text' = foo bar, 'stdin' = None, 'offset' = 123, 'env' = {}", + 'kwargs': "cmd=['ls', '-l'], text='foo bar', stdin=None, offset=123, env={}", + 'colon': "cmd:['ls', '-l'], text:'foo bar', stdin:None, offset:123, env:{}"}} col1_w = max(len(str(e)) for e in next(iter(chks.values()))) + 1 diff --git a/test/objattrtest.py b/test/objattrtest.py index c3ee7101..ab1ead7b 100755 --- a/test/objattrtest.py +++ b/test/objattrtest.py @@ -129,8 +129,7 @@ def test_attr(data, obj, attrname, dobj, bits, attrval_type): 'reassign_ok': purple, 'delete_ok': red, 'typeconv': green, - 'set_none_ok': yellow, - } + 'set_none_ok': yellow} for k in bits: if k in d: if d[k] != bits[k]: diff --git a/test/overlay/fakemods/mmgen/swap/proto/thorchain/asset.py b/test/overlay/fakemods/mmgen/swap/proto/thorchain/asset.py index 703155de..39cdd0a7 100644 --- a/test/overlay/fakemods/mmgen/swap/proto/thorchain/asset.py +++ b/test/overlay/fakemods/mmgen/swap/proto/thorchain/asset.py @@ -5,16 +5,15 @@ class overlay_fake_THORChainSwapAsset: assets_data = { 'ETH.MM1': THORChainSwapAsset._ad('MM1 Token (ETH)', None, 'ETH.MM1', None, True), 'ETH.JUNK': THORChainSwapAsset._ad('Junk Token (ETH)', None, 'ETH.JUNK', None, True), - 'ETH.NONE': THORChainSwapAsset._ad('Unavailable Token (ETH)', None, 'ETH.NONE', None, True) - } + 'ETH.NONE': THORChainSwapAsset._ad('Unavailable Token (ETH)', None, 'ETH.NONE', None, True)} + evm_contracts = { - 'ETH.MM1': 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' - } + 'ETH.MM1': 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef'} + unsupported = ('ETH.NONE',) blacklisted = { - 'ETH.JUNK': 'Because it’s junk', - } + 'ETH.JUNK': 'Because it’s junk'} THORChainSwapAsset.assets_data |= overlay_fake_THORChainSwapAsset.assets_data THORChainSwapAsset.unsupported += overlay_fake_THORChainSwapAsset.unsupported