Merge pull request #1654 from valesi/minor-fixes

Minor fixes - indentation and lone `self.`
This commit is contained in:
ThomasV 2016-01-29 07:50:51 +01:00
commit 4c53a6bfa5
2 changed files with 1 additions and 2 deletions

View File

@ -54,7 +54,7 @@ def check_imports():
try:
from ecdsa.ecdsa import curve_secp256k1, generator_secp256k1
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
assert os.path.exists(requests.utils.DEFAULT_CA_BUNDLE_PATH)

View File

@ -115,7 +115,6 @@ class ScannerAndroid(NFCBase):
#print 'length', length
# will contain the NDEF record types
recTypes = []
self.
for record in ndefrecords:
recTypes.append({
'type': ''.join(map(unichr, record.getType())),