From f0fea335ebb384d2a66b80ed5591c01aec35beef Mon Sep 17 00:00:00 2001 From: MMGen Date: Tue, 30 Oct 2018 16:23:12 +0000 Subject: [PATCH] py3port: update hashbangs This is the first commit of the MMGen Python 3 port. Branch 'py3port', against master branch commit ab06ca4 Commits are groupings of similar or related changes: automatic changes first, followed by repetitive and global changes, followed by specific ones All commits until the final one will leave the branch in a broken state --- cmds/mmgen-addrgen | 2 +- cmds/mmgen-addrimport | 2 +- cmds/mmgen-autosign | 2 +- cmds/mmgen-keygen | 2 +- cmds/mmgen-passchg | 2 +- cmds/mmgen-passgen | 2 +- cmds/mmgen-regtest | 2 +- cmds/mmgen-split | 2 +- cmds/mmgen-tool | 2 +- cmds/mmgen-txbump | 2 +- cmds/mmgen-txcreate | 2 +- cmds/mmgen-txdo | 2 +- cmds/mmgen-txsend | 2 +- cmds/mmgen-txsign | 2 +- cmds/mmgen-walletchk | 2 +- cmds/mmgen-walletconv | 2 +- cmds/mmgen-walletgen | 2 +- mmgen/addr.py | 2 +- mmgen/altcoin.py | 2 +- mmgen/altcoins/eth/contract.py | 2 +- mmgen/altcoins/eth/obj.py | 2 +- mmgen/altcoins/eth/tw.py | 2 +- mmgen/altcoins/eth/tx.py | 2 +- mmgen/bech32.py | 2 +- mmgen/color.py | 2 +- mmgen/common.py | 2 +- mmgen/crypto.py | 2 +- mmgen/exception.py | 2 +- mmgen/filename.py | 2 +- mmgen/globalvars.py | 2 +- mmgen/license.py | 2 +- mmgen/main.py | 2 +- mmgen/main_addrgen.py | 2 +- mmgen/main_addrimport.py | 2 +- mmgen/main_autosign.py | 2 +- mmgen/main_passgen.py | 2 +- mmgen/main_regtest.py | 2 +- mmgen/main_split.py | 2 +- mmgen/main_tool.py | 2 +- mmgen/main_txbump.py | 2 +- mmgen/main_txcreate.py | 2 +- mmgen/main_txdo.py | 2 +- mmgen/main_txsend.py | 2 +- mmgen/main_txsign.py | 2 +- mmgen/main_wallet.py | 2 +- mmgen/mn_electrum.py | 2 +- mmgen/mn_tirosh.py | 2 +- mmgen/obj.py | 2 +- mmgen/opts.py | 2 +- mmgen/protocol.py | 2 +- mmgen/regtest.py | 2 +- mmgen/rpc.py | 2 +- mmgen/seed.py | 2 +- mmgen/sha256.py | 2 +- mmgen/share/Opts.py | 2 +- mmgen/term.py | 2 +- mmgen/test.py | 2 +- mmgen/tool.py | 2 +- mmgen/tw.py | 2 +- mmgen/tx.py | 2 +- mmgen/txsign.py | 2 +- mmgen/util.py | 2 +- scripts/bitcoind-walletunlock.py | 2 +- scripts/compute-file-chksum.py | 2 +- scripts/create-token.py | 2 +- scripts/traceback_run.py | 2 +- scripts/tx-btc2bch.py | 2 +- scripts/tx-v1-to-v3.py | 2 +- scripts/tx-v2-to-v3.py | 2 +- setup.py | 2 +- test/gentest.py | 2 +- test/mmgen_pexpect.py | 2 +- test/objtest.py | 2 +- test/scrambletest.py | 2 +- test/sha256test.py | 2 +- test/test.py | 2 +- test/tooltest.py | 2 +- 77 files changed, 77 insertions(+), 77 deletions(-) diff --git a/cmds/mmgen-addrgen b/cmds/mmgen-addrgen index 6f92797c..c1e81430 100755 --- a/cmds/mmgen-addrgen +++ b/cmds/mmgen-addrgen @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-addrimport b/cmds/mmgen-addrimport index 8358986a..ed9f456e 100755 --- a/cmds/mmgen-addrimport +++ b/cmds/mmgen-addrimport @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-autosign b/cmds/mmgen-autosign index 30772a03..600a1c72 100755 --- a/cmds/mmgen-autosign +++ b/cmds/mmgen-autosign @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-keygen b/cmds/mmgen-keygen index 7555af6b..02c37b60 100755 --- a/cmds/mmgen-keygen +++ b/cmds/mmgen-keygen @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-passchg b/cmds/mmgen-passchg index e8ae0971..d2094874 100755 --- a/cmds/mmgen-passchg +++ b/cmds/mmgen-passchg @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-passgen b/cmds/mmgen-passgen index 707d973a..bc10a5b8 100755 --- a/cmds/mmgen-passgen +++ b/cmds/mmgen-passgen @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-regtest b/cmds/mmgen-regtest index f59c4d44..1ca79564 100755 --- a/cmds/mmgen-regtest +++ b/cmds/mmgen-regtest @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-split b/cmds/mmgen-split index d8446071..088c9ba9 100755 --- a/cmds/mmgen-split +++ b/cmds/mmgen-split @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-tool b/cmds/mmgen-tool index 7760cc92..66ef10db 100755 --- a/cmds/mmgen-tool +++ b/cmds/mmgen-tool @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-txbump b/cmds/mmgen-txbump index 272e3e32..b07363b8 100755 --- a/cmds/mmgen-txbump +++ b/cmds/mmgen-txbump @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-txcreate b/cmds/mmgen-txcreate index f2300b57..6d84c64f 100755 --- a/cmds/mmgen-txcreate +++ b/cmds/mmgen-txcreate @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-txdo b/cmds/mmgen-txdo index 57e37fe7..79cd1f26 100755 --- a/cmds/mmgen-txdo +++ b/cmds/mmgen-txdo @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-txsend b/cmds/mmgen-txsend index e8bfd12b..0659431c 100755 --- a/cmds/mmgen-txsend +++ b/cmds/mmgen-txsend @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-txsign b/cmds/mmgen-txsign index 08580798..b177de73 100755 --- a/cmds/mmgen-txsign +++ b/cmds/mmgen-txsign @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-walletchk b/cmds/mmgen-walletchk index 4e333dcf..a1212245 100755 --- a/cmds/mmgen-walletchk +++ b/cmds/mmgen-walletchk @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-walletconv b/cmds/mmgen-walletconv index e8119357..8e9cfd6e 100755 --- a/cmds/mmgen-walletconv +++ b/cmds/mmgen-walletconv @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/cmds/mmgen-walletgen b/cmds/mmgen-walletgen index 52df9b89..98fa3e1d 100755 --- a/cmds/mmgen-walletgen +++ b/cmds/mmgen-walletgen @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/addr.py b/mmgen/addr.py index 3fbd7b12..3cc7a3f5 100755 --- a/mmgen/addr.py +++ b/mmgen/addr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/altcoin.py b/mmgen/altcoin.py index 18d47dca..0a185464 100755 --- a/mmgen/altcoin.py +++ b/mmgen/altcoin.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/altcoins/eth/contract.py b/mmgen/altcoins/eth/contract.py index cf380957..88c3c35d 100755 --- a/mmgen/altcoins/eth/contract.py +++ b/mmgen/altcoins/eth/contract.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/altcoins/eth/obj.py b/mmgen/altcoins/eth/obj.py index 8d7b6484..75cb6297 100755 --- a/mmgen/altcoins/eth/obj.py +++ b/mmgen/altcoins/eth/obj.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/altcoins/eth/tw.py b/mmgen/altcoins/eth/tw.py index 5471125c..78f237d0 100755 --- a/mmgen/altcoins/eth/tw.py +++ b/mmgen/altcoins/eth/tw.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/altcoins/eth/tx.py b/mmgen/altcoins/eth/tx.py index 9b6562f5..cbfe9b4c 100755 --- a/mmgen/altcoins/eth/tx.py +++ b/mmgen/altcoins/eth/tx.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/bech32.py b/mmgen/bech32.py index 555e8c93..edf31642 100644 --- a/mmgen/bech32.py +++ b/mmgen/bech32.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Source URL: # https://github.com/bitcoin/bitcoin/blob/v0.16.0/test/functional/test_framework/segwit_addr.py diff --git a/mmgen/color.py b/mmgen/color.py index 45df2adf..3a5005c5 100755 --- a/mmgen/color.py +++ b/mmgen/color.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/common.py b/mmgen/common.py index 8d2ad705..ca66b362 100755 --- a/mmgen/common.py +++ b/mmgen/common.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/crypto.py b/mmgen/crypto.py index 0703cbc3..2a05c473 100755 --- a/mmgen/crypto.py +++ b/mmgen/crypto.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/exception.py b/mmgen/exception.py index cc2980f4..5b445c71 100755 --- a/mmgen/exception.py +++ b/mmgen/exception.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/filename.py b/mmgen/filename.py index 0d8ffdb4..0d3bd5e0 100755 --- a/mmgen/filename.py +++ b/mmgen/filename.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/globalvars.py b/mmgen/globalvars.py index 64a84b6b..c9a2d224 100755 --- a/mmgen/globalvars.py +++ b/mmgen/globalvars.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/license.py b/mmgen/license.py index 7ace0087..8781e10f 100755 --- a/mmgen/license.py +++ b/mmgen/license.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main.py b/mmgen/main.py index d9082b56..d848d859 100755 --- a/mmgen/main.py +++ b/mmgen/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_addrgen.py b/mmgen/main_addrgen.py index 9fdcd7b9..eed85263 100755 --- a/mmgen/main_addrgen.py +++ b/mmgen/main_addrgen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_addrimport.py b/mmgen/main_addrimport.py index b22125d0..6429dfb1 100755 --- a/mmgen/main_addrimport.py +++ b/mmgen/main_addrimport.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_autosign.py b/mmgen/main_autosign.py index e9b5aca4..075176bd 100755 --- a/mmgen/main_autosign.py +++ b/mmgen/main_autosign.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_passgen.py b/mmgen/main_passgen.py index 05077f02..f5fe2318 100755 --- a/mmgen/main_passgen.py +++ b/mmgen/main_passgen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_regtest.py b/mmgen/main_regtest.py index 3e7760b2..7c85e1b9 100755 --- a/mmgen/main_regtest.py +++ b/mmgen/main_regtest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_split.py b/mmgen/main_split.py index 5011d04b..61f77a80 100755 --- a/mmgen/main_split.py +++ b/mmgen/main_split.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_tool.py b/mmgen/main_tool.py index e8fe0b4e..8c7d812f 100755 --- a/mmgen/main_tool.py +++ b/mmgen/main_tool.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_txbump.py b/mmgen/main_txbump.py index 400d2e99..568a6d7f 100755 --- a/mmgen/main_txbump.py +++ b/mmgen/main_txbump.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_txcreate.py b/mmgen/main_txcreate.py index 94741924..3708afee 100755 --- a/mmgen/main_txcreate.py +++ b/mmgen/main_txcreate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_txdo.py b/mmgen/main_txdo.py index e9aaf0ad..70a96fb9 100755 --- a/mmgen/main_txdo.py +++ b/mmgen/main_txdo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_txsend.py b/mmgen/main_txsend.py index 5826f0c6..14f88f58 100755 --- a/mmgen/main_txsend.py +++ b/mmgen/main_txsend.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_txsign.py b/mmgen/main_txsign.py index 2d236734..fc4530a6 100755 --- a/mmgen/main_txsign.py +++ b/mmgen/main_txsign.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/main_wallet.py b/mmgen/main_wallet.py index e81d90a1..dc0d1aef 100755 --- a/mmgen/main_wallet.py +++ b/mmgen/main_wallet.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/mn_electrum.py b/mmgen/mn_electrum.py index a8c81e3e..f208c937 100755 --- a/mmgen/mn_electrum.py +++ b/mmgen/mn_electrum.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/mn_tirosh.py b/mmgen/mn_tirosh.py index d3282999..135b56ad 100755 --- a/mmgen/mn_tirosh.py +++ b/mmgen/mn_tirosh.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/obj.py b/mmgen/obj.py index b84fa7bf..7e37bb39 100755 --- a/mmgen/obj.py +++ b/mmgen/obj.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/opts.py b/mmgen/opts.py index 65d3b10f..ab4bd83a 100755 --- a/mmgen/opts.py +++ b/mmgen/opts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/protocol.py b/mmgen/protocol.py index c7d09e42..e09ab2a1 100755 --- a/mmgen/protocol.py +++ b/mmgen/protocol.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # MMGen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/regtest.py b/mmgen/regtest.py index af7ce606..19725140 100755 --- a/mmgen/regtest.py +++ b/mmgen/regtest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/rpc.py b/mmgen/rpc.py index b7ec4cb9..fdb816e3 100755 --- a/mmgen/rpc.py +++ b/mmgen/rpc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/seed.py b/mmgen/seed.py index 83b623e4..238e9a7d 100755 --- a/mmgen/seed.py +++ b/mmgen/seed.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/sha256.py b/mmgen/sha256.py index 990f97f9..532aeff9 100755 --- a/mmgen/sha256.py +++ b/mmgen/sha256.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/share/Opts.py b/mmgen/share/Opts.py index c8e121a1..7b64aad4 100755 --- a/mmgen/share/Opts.py +++ b/mmgen/share/Opts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Opts.py, an options parsing library for Python. Copyright (C) 2014-2016 # Philemon . diff --git a/mmgen/term.py b/mmgen/term.py index eb29ff42..336e46b8 100755 --- a/mmgen/term.py +++ b/mmgen/term.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/test.py b/mmgen/test.py index dd995503..ce959bd2 100755 --- a/mmgen/test.py +++ b/mmgen/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/tool.py b/mmgen/tool.py index 53a7328d..37a1a95c 100755 --- a/mmgen/tool.py +++ b/mmgen/tool.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/tw.py b/mmgen/tw.py index ac202e62..db2e98c6 100755 --- a/mmgen/tw.py +++ b/mmgen/tw.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/tx.py b/mmgen/tx.py index c2f9040a..09c5e8b6 100755 --- a/mmgen/tx.py +++ b/mmgen/tx.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/mmgen/txsign.py b/mmgen/txsign.py index 5d546443..d071f43e 100755 --- a/mmgen/txsign.py +++ b/mmgen/txsign.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/mmgen/util.py b/mmgen/util.py index 754f4ee4..61da8c3d 100755 --- a/mmgen/util.py +++ b/mmgen/util.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/scripts/bitcoind-walletunlock.py b/scripts/bitcoind-walletunlock.py index 591079e4..3a6f67e8 100755 --- a/scripts/bitcoind-walletunlock.py +++ b/scripts/bitcoind-walletunlock.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C) 2013 by philemon diff --git a/scripts/compute-file-chksum.py b/scripts/compute-file-chksum.py index b27ad6fc..006b5bd1 100755 --- a/scripts/compute-file-chksum.py +++ b/scripts/compute-file-chksum.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys,os repo_root = os.path.split(os.path.abspath(os.path.dirname(sys.argv[0])))[0] diff --git a/scripts/create-token.py b/scripts/create-token.py index 20b37642..c40ee153 100755 --- a/scripts/create-token.py +++ b/scripts/create-token.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys,os,json from subprocess import Popen,PIPE diff --git a/scripts/traceback_run.py b/scripts/traceback_run.py index e0c28269..be5f36cf 100755 --- a/scripts/traceback_run.py +++ b/scripts/traceback_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys,traceback,os sys.path.insert(0,'.') diff --git a/scripts/tx-btc2bch.py b/scripts/tx-btc2bch.py index 7bc73666..2ea20b48 100755 --- a/scripts/tx-btc2bch.py +++ b/scripts/tx-btc2bch.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/scripts/tx-v1-to-v3.py b/scripts/tx-v1-to-v3.py index 46d3abea..3c852064 100755 --- a/scripts/tx-v1-to-v3.py +++ b/scripts/tx-v1-to-v3.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Convert MMGen 'v1' transaction file (extension '.raw' or '.sig') # to MMGen 'v3' ('.rawtx' or '.sigtx' + amounts as strings) diff --git a/scripts/tx-v2-to-v3.py b/scripts/tx-v2-to-v3.py index 350d3499..c8f819e7 100755 --- a/scripts/tx-v2-to-v3.py +++ b/scripts/tx-v2-to-v3.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Convert MMGen 'v2' transaction file (amounts as BTCAmt()) # to MMGen 'v3' (amounts as strings) # v3 tx files were introduced with MMGen version 0.9.7 diff --git a/setup.py b/setup.py index 8dc72d9b..cfaa06d7 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/test/gentest.py b/test/gentest.py index db4ff65b..da15ac99 100755 --- a/test/gentest.py +++ b/test/gentest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/test/mmgen_pexpect.py b/test/mmgen_pexpect.py index e61b6219..1981f7d7 100755 --- a/test/mmgen_pexpect.py +++ b/test/mmgen_pexpect.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/test/objtest.py b/test/objtest.py index d6b419d7..fdf6af4b 100755 --- a/test/objtest.py +++ b/test/objtest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution diff --git a/test/scrambletest.py b/test/scrambletest.py index 4ce58e39..2f58e0eb 100755 --- a/test/scrambletest.py +++ b/test/scrambletest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/test/sha256test.py b/test/sha256test.py index 3aad45f9..38a697fa 100755 --- a/test/sha256test.py +++ b/test/sha256test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys,os,hashlib diff --git a/test/test.py b/test/test.py index 72a0f40b..f436ef1b 100755 --- a/test/test.py +++ b/test/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project diff --git a/test/tooltest.py b/test/tooltest.py index d0e233ac..93a2c104 100755 --- a/test/tooltest.py +++ b/test/tooltest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution # Copyright (C)2013-2018 The MMGen Project