Author: Richard Plangger <[email protected]>
Branch: py3k
Changeset: r84587:b5040274c15f
Date: 2016-05-22 21:39 +0200
http://bitbucket.org/pypy/pypy/changeset/b5040274c15f/
Log: missing 3 in states_double3DFA
diff --git a/pypy/interpreter/pyparser/gendfa.py
b/pypy/interpreter/pyparser/gendfa.py
--- a/pypy/interpreter/pyparser/gendfa.py
+++ b/pypy/interpreter/pyparser/gendfa.py
@@ -268,7 +268,7 @@
return {"'" : (singleDFA, states_singleDFA),
'"' : (doubleDFA, states_doubleDFA),
"'''": (single3DFA, states_single3DFA),
- '"""': (double3DFA, states_doubleDFA)}
+ '"""': (double3DFA, states_double3DFA)}
# ______________________________________________________________________
@@ -319,7 +319,7 @@
lines.append('\n')
i += 1
lines.append(" ]\n")
- lines.append("%s = automata.%s(states, accepts)\n\n" % (name, dfa_class))
+ lines.append("%s = automata.%s(states, accepts)\n" % (name, dfa_class))
return ''.join(lines)
def main ():
@@ -338,7 +338,7 @@
print output("single3DFA", "NonGreedyDFA", dfa, states)
dfa, states = endDFAMap["'"]
print output("singleDFA", "DFA", dfa, states)
- dfa, states = endDFAMap["\""]
+ dfa, states = endDFAMap['"']
print output("doubleDFA", "DFA", dfa, states)
# ______________________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit