diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 14:03:56 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 14:03:56 +0200 |
commit | 304a42b914cde43a31a935181b0f952c726eee54 (patch) | |
tree | 104a496ed690c187a479cde5b829f4e76b21c1cd /pyload/config | |
parent | Other import fixes (diff) | |
download | pyload-304a42b914cde43a31a935181b0f952c726eee54.tar.xz |
Other import fixes (2)
Diffstat (limited to 'pyload/config')
-rw-r--r-- | pyload/config/Setup.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py index 1486eadca..fdf2524f5 100644 --- a/pyload/config/Setup.py +++ b/pyload/config/Setup.py @@ -4,12 +4,11 @@ from __future__ import with_statement import __builtin__ +import getpass import os import subprocess import sys -from getpass import getpass - from pyload.network.JsEngine import JsEngine from pyload.utils import get_console_encoding, load_translation, fs_join, versiontuple @@ -510,7 +509,7 @@ class SetupAssistant(object): pwlen = 8 while p1 != p2: sys.stdout.write(_("Password: ")) - p1 = getpass("").strip("\n\r") + p1 = getpass.getpass("").strip("\n\r") if len(p1) < pwlen: print @@ -524,7 +523,7 @@ class SetupAssistant(object): continue sys.stdout.write(_("Password (again): ")) - p2 = getpass("").strip("\n\r") + p2 = getpass.getpass("").strip("\n\r") if p1 == p2: print |