summaryrefslogtreecommitdiff
path: root/examples/admin_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/admin_commands.py')
-rwxr-xr-xexamples/admin_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/admin_commands.py b/examples/admin_commands.py
index ef0dc5bf..928c2fc6 100755
--- a/examples/admin_commands.py
+++ b/examples/admin_commands.py
@@ -10,7 +10,7 @@
"""
import logging
-import getpass
+from getpass import getpass
from optparse import OptionParser
import slixmpp
@@ -135,7 +135,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.command is None:
opts.command = input("Admin command: ")