diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-08-16 22:37:29 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-09-01 02:47:15 +0200 |
commit | 67ca2dd0f45b112e206fb80eb4613960f312f721 (patch) | |
tree | 3a9dc1727e2e51ba39d0ece0a17d2998f52cc981 /examples/set_avatar.py | |
parent | 882f984b2622a6e44cce5401b8673760f559f718 (diff) | |
download | slixmpp-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/set_avatar.py')
-rwxr-xr-x | examples/set_avatar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/set_avatar.py b/examples/set_avatar.py index e446497b..4292c970 100755 --- a/examples/set_avatar.py +++ b/examples/set_avatar.py @@ -12,7 +12,7 @@ import os import imghdr import logging -import getpass +from getpass import getpass import threading from optparse import OptionParser @@ -132,7 +132,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.filepath is None: opts.filepath = input("Avatar file location: ") |