ThomasV 8 years ago
parent
commit
9cafc3db2d
  1. 4
      lib/keystore.py

4
lib/keystore.py

@ -186,7 +186,6 @@ class Imported_KeyStore(Software_KeyStore):
return (False, i)
def update_password(self, old_password, new_password):
if old_password is not None:
self.check_password(old_password)
if new_password == '':
new_password = None
@ -194,7 +193,6 @@ class Imported_KeyStore(Software_KeyStore):
b = pw_decode(v, old_password)
c = pw_encode(b, new_password)
self.keypairs[k] = c
print self.keypairs
class Deterministic_KeyStore(Software_KeyStore):
@ -317,7 +315,6 @@ class BIP32_KeyStore(Deterministic_KeyStore, Xpub):
raise InvalidPassword()
def update_password(self, old_password, new_password):
if old_password is not None:
self.check_password(old_password)
if new_password == '':
new_password = None
@ -485,7 +482,6 @@ class Old_KeyStore(Deterministic_KeyStore):
return derivation
def update_password(self, old_password, new_password):
if old_password is not None:
self.check_password(old_password)
if new_password == '':
new_password = None

Loading…
Cancel
Save