diff options
Diffstat (limited to 'examples/custom_stanzas')
-rwxr-xr-x | examples/custom_stanzas/custom_stanza_provider.py | 4 | ||||
-rwxr-xr-x | examples/custom_stanzas/custom_stanza_user.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/custom_stanzas/custom_stanza_provider.py b/examples/custom_stanzas/custom_stanza_provider.py index fc04bdd4..e9060c87 100755 --- a/examples/custom_stanzas/custom_stanza_provider.py +++ b/examples/custom_stanzas/custom_stanza_provider.py @@ -10,7 +10,7 @@ """ import logging -import getpass +from getpass import getpass from optparse import OptionParser import slixmpp @@ -124,7 +124,7 @@ if __name__ == '__main__': if opts.jid is None: opts.jid = input("Username: ") if opts.password is None: - opts.password = getpass.getpass("Password: ") + opts.password = getpass("Password: ") # Setup the CommandBot and register plugins. Note that while plugins may # have interdependencies, the order in which you register them does diff --git a/examples/custom_stanzas/custom_stanza_user.py b/examples/custom_stanzas/custom_stanza_user.py index 95837106..6e5c3e0c 100755 --- a/examples/custom_stanzas/custom_stanza_user.py +++ b/examples/custom_stanzas/custom_stanza_user.py @@ -10,7 +10,7 @@ """ import logging -import getpass +from getpass import getpass from optparse import OptionParser import slixmpp @@ -130,7 +130,7 @@ if __name__ == '__main__': if opts.jid is None: opts.jid = input("Username: ") if opts.password is None: - opts.password = getpass.getpass("Password: ") + opts.password = getpass("Password: ") if opts.other is None: opts.other = input("JID Providing custom stanza: ") |