Fixed a few issues related to getting input and passwords in the Python shell.

Tue, 14 Mar 2017 15:09:08 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 14 Mar 2017 15:09:08 +0100
changeset 5610
3af522dbfbea
parent 5609
5bf0aaa818e9
child 5613
f9dc65b75525

Fixed a few issues related to getting input and passwords in the Python shell.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
QScintilla/Shell.py file | annotate | diff | comparison | revisions
diff -r 5bf0aaa818e9 -r 3af522dbfbea Documentation/Help/source.qch
Binary file Documentation/Help/source.qch has changed
diff -r 5bf0aaa818e9 -r 3af522dbfbea QScintilla/Shell.py
--- a/QScintilla/Shell.py	Tue Mar 14 11:42:43 2017 +0100
+++ b/QScintilla/Shell.py	Tue Mar 14 15:09:08 2017 +0100
@@ -1446,14 +1446,14 @@
         else:
             if not self.echoInput:
                 cmd = self.buff
+                self.buff = ""
+            elif cmd:
+                cmd = cmd[len(self.prompt):]
             self.inRawMode = False
             self.echoInput = True
-            if not cmd:
-                cmd = ''
-            else:
-                cmd = cmd[len(self.prompt):]
+            
             self.dbs.remoteRawInput(cmd)
-        
+    
     def __useHistory(self):
         """
         Private method to display a command from the history.

eric ide

mercurial