Update linearize-hashes.py
Fix class case issue.
This commit is contained in:
parent
5029e94f85
commit
7fdb92e53b
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
#
|
#
|
||||||
|
|
||||||
from http.client import HttpConnection
|
from http.client import HTTPConnection
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import base64
|
import base64
|
||||||
|
@ -27,7 +27,7 @@ class BitcoinRPC:
|
||||||
authpair = "%s:%s" % (username, password)
|
authpair = "%s:%s" % (username, password)
|
||||||
authpair = authpair.encode('utf-8')
|
authpair = authpair.encode('utf-8')
|
||||||
self.authhdr = b"Basic " + base64.b64encode(authpair)
|
self.authhdr = b"Basic " + base64.b64encode(authpair)
|
||||||
self.conn = HttpConnection(host, port=port, timeout=30)
|
self.conn = HTTPConnection(host, port=port, timeout=30)
|
||||||
|
|
||||||
def execute(self, obj):
|
def execute(self, obj):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue