diff options
Diffstat (limited to 'examples/register_account.py')
-rwxr-xr-x | examples/register_account.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/register_account.py b/examples/register_account.py index 8ec238e9..76b5fcfc 100755 --- a/examples/register_account.py +++ b/examples/register_account.py @@ -66,7 +66,7 @@ class RegisterBot(slixmpp.ClientXMPP): # We're only concerned about registering, so nothing more to do here. self.disconnect() - def register(self, iq): + async def register(self, iq): """ Fill out and submit a registration form. @@ -90,7 +90,7 @@ class RegisterBot(slixmpp.ClientXMPP): resp['register']['password'] = self.password try: - yield from resp.send() + await resp.send() logging.info("Account created for %s!" % self.boundjid) except IqError as e: logging.error("Could not register account: %s" % |