[Jython-checkins] jython: printStatement -> printFunction to be consistent with unicodeLiterals and
frank.wierzbicki
jython-checkins at python.org
Tue Mar 13 20:23:02 CET 2012
http://hg.python.org/jython/rev/1453c98a1999
changeset: 6320:1453c98a1999
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Tue Mar 13 12:22:55 2012 -0700
summary:
printStatement -> printFunction to be consistent with unicodeLiterals and
start as false.
files:
grammar/Python.g | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/grammar/Python.g b/grammar/Python.g
--- a/grammar/Python.g
+++ b/grammar/Python.g
@@ -168,7 +168,7 @@
private String encoding;
- private boolean printStatement = true;
+ private boolean printFunction = false;
private boolean unicodeLiterals = false;
public void setErrorHandler(ErrorHandler eh) {
@@ -387,7 +387,7 @@
: NAME {
$tok = $name_or_print.start;
}
- | {!printStatement}? => PRINT {
+ | {printFunction}? => PRINT {
$tok = $name_or_print.start;
}
;
@@ -610,7 +610,7 @@
| global_stmt
| exec_stmt
| assert_stmt
- | {printStatement}? => print_stmt
+ | {!printFunction}? => print_stmt
;
//expr_stmt: testlist (augassign (yield_expr|testlist) |
@@ -941,7 +941,7 @@
for(alias a: aliases) {
if (a != null) {
if (a.getInternalName().equals("print_function")) {
- printStatement = false;
+ printFunction = true;
} else if (a.getInternalName().equals("unicode_literals")) {
unicodeLiterals = true;
}
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list