aboutsummaryrefslogtreecommitdiffstats
path: root/examples/custom_stanzas/custom_stanza_provider.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2014-08-16 20:37:29 (GMT)
committerFlorent Le Coz2014-09-01 00:47:15 (GMT)
commit67ca2dd0f45b112e206fb80eb4613960f312f721 (patch)
tree3a9dc1727e2e51ba39d0ece0a17d2998f52cc981 /examples/custom_stanzas/custom_stanza_provider.py
parent882f984b2622a6e44cce5401b8673760f559f718 (diff)
downloadslixmpp-67ca2dd0f45b112e206fb80eb4613960f312f721.tar.gz
slixmpp-67ca2dd0f45b112e206fb80eb4613960f312f721.tar.xz
Import getpass from getpass, instead of using getpass.getpass everytime.
Diffstat (limited to 'examples/custom_stanzas/custom_stanza_provider.py')
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_provider.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_stanzas/custom_stanza_provider.py b/examples/custom_stanzas/custom_stanza_provider.py
index fc04bdd..e9060c8 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