This commit is contained in:
ThomasV 2016-10-07 00:20:46 +02:00
parent 21ad805010
commit 9cafc3db2d
1 changed files with 3 additions and 7 deletions

View File

@ -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