summaryrefslogtreecommitdiff
path: root/examples/user_location.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/user_location.py')
-rwxr-xr-xexamples/user_location.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/user_location.py b/examples/user_location.py
index 74cad8af..8ad9f5c1 100755
--- a/examples/user_location.py
+++ b/examples/user_location.py
@@ -2,7 +2,7 @@
import sys
import logging
-import getpass
+from getpass import getpass
from optparse import OptionParser
try:
@@ -99,7 +99,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: ")
xmpp = LocationBot(opts.jid, opts.password)