summaryrefslogtreecommitdiff
path: root/examples/proxy_echo_client.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-08-16 22:37:29 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-09-01 02:47:15 +0200
commit67ca2dd0f45b112e206fb80eb4613960f312f721 (patch)
tree3a9dc1727e2e51ba39d0ece0a17d2998f52cc981 /examples/proxy_echo_client.py
parent882f984b2622a6e44cce5401b8673760f559f718 (diff)
downloadslixmpp-67ca2dd0f45b112e206fb80eb4613960f312f721.tar.gz
slixmpp-67ca2dd0f45b112e206fb80eb4613960f312f721.tar.bz2
slixmpp-67ca2dd0f45b112e206fb80eb4613960f312f721.tar.xz
slixmpp-67ca2dd0f45b112e206fb80eb4613960f312f721.zip
Import getpass from getpass, instead of using getpass.getpass everytime.
Diffstat (limited to 'examples/proxy_echo_client.py')
-rwxr-xr-xexamples/proxy_echo_client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/proxy_echo_client.py b/examples/proxy_echo_client.py
index 56ecb78f..34ed98a4 100755
--- a/examples/proxy_echo_client.py
+++ b/examples/proxy_echo_client.py
@@ -10,7 +10,7 @@
"""
import logging
-import getpass
+from getpass import getpass
from optparse import OptionParser
import slixmpp
@@ -109,7 +109,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.proxy_host is None:
opts.proxy_host = input("Proxy host: ")
if opts.proxy_port is None:
@@ -117,7 +117,7 @@ if __name__ == '__main__':
if opts.proxy_user is None:
opts.proxy_user = input("Proxy username: ")
if opts.proxy_pass is None and opts.proxy_user:
- opts.proxy_pass = getpass.getpass("Proxy password: ")
+ opts.proxy_pass = getpass("Proxy password: ")
# Setup the EchoBot and register plugins. Note that while plugins may
# have interdependencies, the order in which you register them does