diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-10 10:16:14 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-10 10:29:09 +0100 |
commit | 4dfac2c95084dd0bcf0d7d5dc2e9d60f027a7be4 (patch) | |
tree | 066630f819c0c0e9ac20eb45330efac24bb93008 /contrib/seeds/generate-seeds.py | |
parent | 33f3b21407a38faaaee2d72d16e8eb340fe74657 (diff) | |
download | bitcoin-4dfac2c95084dd0bcf0d7d5dc2e9d60f027a7be4.tar.xz |
Update seeds tooling to Python 3
All the other tooling scripts require Python 3, it makes sense to do so
here too.
Also document the dependency on python3-dnspython.
Diffstat (limited to 'contrib/seeds/generate-seeds.py')
-rwxr-xr-x | contrib/seeds/generate-seeds.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/seeds/generate-seeds.py b/contrib/seeds/generate-seeds.py index f43dc0b218..b0ac92ae03 100755 --- a/contrib/seeds/generate-seeds.py +++ b/contrib/seeds/generate-seeds.py @@ -1,5 +1,5 @@ -#!/usr/bin/env python -# Copyright (c) 2014 Wladimir J. van der Laan +#!/usr/bin/env python3 +# Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' @@ -31,7 +31,7 @@ The output will be two data structures with the peers in binary format: These should be pasted into `src/chainparamsseeds.h`. ''' -from __future__ import print_function, division + from base64 import b32decode from binascii import a2b_hex import sys, os |