From 67ca2dd0f45b112e206fb80eb4613960f312f721 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 16 Aug 2014 22:37:29 +0200 Subject: Import getpass from getpass, instead of using getpass.getpass everytime. --- examples/gtalk_custom_domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/gtalk_custom_domain.py') diff --git a/examples/gtalk_custom_domain.py b/examples/gtalk_custom_domain.py index 2c1d5beb..3897c6d2 100755 --- a/examples/gtalk_custom_domain.py +++ b/examples/gtalk_custom_domain.py @@ -10,7 +10,7 @@ """ import logging -import getpass +from getpass import getpass from optparse import OptionParser import slixmpp @@ -120,7 +120,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 GTalkBot and register plugins. Note that while plugins may # have interdependencies, the order in which you register them does -- cgit v1.2.3