summaryrefslogtreecommitdiff
path: root/examples/thirdparty_auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/thirdparty_auth.py')
-rwxr-xr-xexamples/thirdparty_auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/thirdparty_auth.py b/examples/thirdparty_auth.py
index 504048a9..8f402087 100755
--- a/examples/thirdparty_auth.py
+++ b/examples/thirdparty_auth.py
@@ -11,7 +11,7 @@
import sys
import logging
-import getpass
+from getpass import getpass
from optparse import OptionParser
try:
@@ -122,7 +122,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: ")
access_token = None