1
0

The constructor() concept doesn't exist

Did it ever?
This commit is contained in:
Neil Booth
2015-12-29 22:59:25 +09:00
parent 993ff30616
commit 0f70d0b8a5
4 changed files with 1 additions and 13 deletions

View File

@@ -1916,10 +1916,7 @@ class Wallet(object):
if wallet_type:
for cat, t, name, loader in wallet_types:
if t == wallet_type:
if cat in ['hardware', 'twofactor']:
WalletClass = lambda storage: apply(loader().constructor, (storage,))
else:
WalletClass = loader
WalletClass = loader
break
else:
if re.match('(\d+)of(\d+)', wallet_type):