Import getpass from getpass, instead of using getpass.getpass everytime.
This commit is contained in:
committed by
Florent Le Coz
parent
882f984b26
commit
67ca2dd0f4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user