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/migrate_roster.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/migrate_roster.py')
-rwxr-xr-x | examples/migrate_roster.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/migrate_roster.py b/examples/migrate_roster.py index e7849135..599d9644 100755 --- a/examples/migrate_roster.py +++ b/examples/migrate_roster.py @@ -3,7 +3,7 @@ import sys import logging -import getpass +from getpass import getpass from optparse import OptionParser import slixmpp @@ -44,12 +44,12 @@ logging.basicConfig(level=opts.loglevel, if opts.old_jid is None: opts.old_jid = input("Old JID: ") if opts.old_password is None: - opts.old_password = getpass.getpass("Old Password: ") + opts.old_password = getpass("Old Password: ") if opts.new_jid is None: opts.new_jid = input("New JID: ") if opts.new_password is None: - opts.new_password = getpass.getpass("New Password: ") + opts.new_password = getpass("New Password: ") old_xmpp = slixmpp.ClientXMPP(opts.old_jid, opts.old_password) |