try:
anwser = json.load(self.opener.open(rq))
return generator.send(anwser)
except StopIteration:
# by default, just return the anwser as a shorthand
try:
anwser = json.load(self.opener.open(rq))
return generator.send(anwser)
except StopIteration:
# by default, just return the anwser as a shorthand
auth_handler.add_password(
realm=self.auth_realm, uri=self.base_url,
user=self.auth_user, passwd=config_dict['AUTH_PASSWD'])
auth_handler.add_password(
realm=self.auth_realm, uri=self.base_url,
user=self.auth_user, passwd=config_dict['AUTH_PASSWD'])