# Obfuscate password to prevent accidental discovery
if {'username', 'password'} <= self.storage_mgr.keys():
- username = storage_mgr['username']
- password = decode(storage_mgr['password'])
+ username = self.storage_mgr['username']
+ password = decode(self.storage_mgr['password'])
else:
username = self.ui.ask_username()
password = self.ui.ask_password()
- storage_mgr['username'] = username
- storage_mgr['password'] = encode(password)
+ self.storage_mgr['username'] = username
+ self.storage_mgr['password'] = encode(password)
url = self.bb_root.host + str(self.bb_root.path)
with self.parent.open(url) as resp: