[Jython-checkins] jython: Restore getpass.getpass turning off echo in JLine

jim.baker jython-checkins at python.org
Wed Dec 3 01:22:45 CET 2014


https://hg.python.org/jython/rev/5c36bda58baa
changeset:   7430:5c36bda58baa
user:        Jim Baker <jim.baker at rackspace.com>
date:        Tue Dec 02 17:22:23 2014 -0700
summary:
  Restore getpass.getpass turning off echo in JLine

Approximately around r7116 with the console refactoring the attribute
for getting the console from sys was changed to sys._jy_console, but
not updated in the getpass module. Unfortunately we do not at this
time have testing for such interactive usage, so this was just
reported via email on
http://sourceforge.net/p/jython/mailman/message/33103064/

files:
  Lib/getpass.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/getpass.py b/Lib/getpass.py
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -29,7 +29,7 @@
         stream = sys.stdout
 
     try:
-        terminal = sys._jy_interpreter.reader.terminal
+        terminal = sys._jy_console.reader.terminal
     except:
         return default_getpass(prompt)
 

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list