Minor fixes - indentation and lone self.
6ba43637f5/electrum (L57)has tab instead of spaces.6ba43637f5/gui/kivy/nfc_scanner/scanner_android.py (L118)has lone `self.`
This commit is contained in:
2
electrum
2
electrum
@@ -54,7 +54,7 @@ def check_imports():
|
|||||||
try:
|
try:
|
||||||
from ecdsa.ecdsa import curve_secp256k1, generator_secp256k1
|
from ecdsa.ecdsa import curve_secp256k1, generator_secp256k1
|
||||||
except Exception:
|
except Exception:
|
||||||
sys.exit("cannot import ecdsa.curve_secp256k1. You probably need to upgrade ecdsa.\nTry: sudo pip install --upgrade ecdsa")
|
sys.exit("cannot import ecdsa.curve_secp256k1. You probably need to upgrade ecdsa.\nTry: sudo pip install --upgrade ecdsa")
|
||||||
# make sure that certificates are here
|
# make sure that certificates are here
|
||||||
assert os.path.exists(requests.utils.DEFAULT_CA_BUNDLE_PATH)
|
assert os.path.exists(requests.utils.DEFAULT_CA_BUNDLE_PATH)
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ class ScannerAndroid(NFCBase):
|
|||||||
#print 'length', length
|
#print 'length', length
|
||||||
# will contain the NDEF record types
|
# will contain the NDEF record types
|
||||||
recTypes = []
|
recTypes = []
|
||||||
self.
|
|
||||||
for record in ndefrecords:
|
for record in ndefrecords:
|
||||||
recTypes.append({
|
recTypes.append({
|
||||||
'type': ''.join(map(unichr, record.getType())),
|
'type': ''.join(map(unichr, record.getType())),
|
||||||
|
|||||||
Reference in New Issue
Block a user