Clean up password prompt

This commit is contained in:
Michael Spang 2009-08-22 15:05:56 -04:00
parent fe9af9994e
commit c4cb1a3b29
1 changed files with 2 additions and 3 deletions

View File

@ -12,9 +12,8 @@ def start():
library.configure()
print "read."
print "Connecting to LDAP...",
print "Connecting to LDAP..."
members.connect(AuthCallback())
print "connected."
if len(sys.argv) == 1:
ceo.urwid.main.start()
@ -30,7 +29,7 @@ def start():
class AuthCallback:
def callback(self, error):
try:
sys.stderr.write("Password: ")
print "Password: ",
return getpass("")
except KeyboardInterrupt:
print ""