fix #1954
This commit is contained in:
parent
21ad805010
commit
9cafc3db2d
|
@ -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…
Reference in New Issue