summaryrefslogtreecommitdiff
path: root/examples/pubsub_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pubsub_client.py')
-rwxr-xr-xexamples/pubsub_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py
index 36d044fd..d780ac71 100755
--- a/examples/pubsub_client.py
+++ b/examples/pubsub_client.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import logging
-import getpass
+from getpass import getpass
from optparse import OptionParser
import slixmpp
@@ -151,7 +151,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 len(args) == 2:
args = (args[0], args[1], '', '', '')