summaryrefslogtreecommitdiff
path: root/examples/download_avatars.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/download_avatars.py')
-rwxr-xr-xexamples/download_avatars.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/download_avatars.py b/examples/download_avatars.py
index d2e3ab2a..b002ff08 100755
--- a/examples/download_avatars.py
+++ b/examples/download_avatars.py
@@ -10,7 +10,7 @@
"""
import logging
-import getpass
+from getpass import getpass
import threading
from optparse import OptionParser
@@ -144,7 +144,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 = AvatarDownloader(opts.jid, opts.password)
xmpp.register_plugin('xep_0054')