From c4cb1a3b2912d93445b43935c3b5324357d70a35 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Sat, 22 Aug 2009 15:05:56 -0400 Subject: [PATCH] Clean up password prompt --- ceo/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ceo/main.py b/ceo/main.py index 821915e..07a6c5d 100644 --- a/ceo/main.py +++ b/ceo/main.py @@ -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 ""