mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
Bugfix: rpcauth: Specify encoding for output file
This commit is contained in:
parent
492330e6a9
commit
732efacf78
@ -40,7 +40,7 @@ def main():
|
|||||||
rpcauth = f'{args.username}:{salt}${password_hmac}'
|
rpcauth = f'{args.username}:{salt}${password_hmac}'
|
||||||
|
|
||||||
if args.output:
|
if args.output:
|
||||||
file = open(args.output, "x")
|
file = open(args.output, "x", encoding="utf8")
|
||||||
file.write(rpcauth)
|
file.write(rpcauth)
|
||||||
|
|
||||||
if args.json:
|
if args.json:
|
||||||
|
Loading…
Reference in New Issue
Block a user