[Jython-checkins] jython: Do not attempt to expand ! in the console.
jim.baker
jython-checkins at python.org
Wed Feb 11 18:19:01 CET 2015
https://hg.python.org/jython/rev/3d3e16363dc1
changeset: 7578:3d3e16363dc1
user: Jim Baker <jim.baker at rackspace.com>
date: Wed Feb 11 10:07:13 2015 -0700
summary:
Do not attempt to expand ! in the console.
Such expansion is the default behavior in JLine2, so it just needed to
be turned off. Fixes http://bugs.jython.org/issue2268
files:
src/org/python/util/JLineConsole.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/org/python/util/JLineConsole.java b/src/org/python/util/JLineConsole.java
--- a/src/org/python/util/JLineConsole.java
+++ b/src/org/python/util/JLineConsole.java
@@ -112,6 +112,9 @@
// We find the bell too noisy
reader.setBellEnabled(false);
+ // Do not attempt to expand ! in the input
+ reader.setExpandEvents(false);
+
/*
* Everybody else, using sys.stdout or java.lang.System.out, gets to write on a special
* PrintStream that keeps the last incomplete line in case it turns out to be a console
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list