Commit 95b78680 authored by Guido van Rossum's avatar Guido van Rossum

Oops, I screwed up. I accidentally checked in Evan's tentative

changes for CancelAction with the test->tests checkin.  Undo this.

(Also in DummyEngine.py, but there I screwed up the undo, so it will
take a little longer.)
parent 63cab4c1
......@@ -157,7 +157,6 @@ class TALInterpreter:
self.macros = macros
self.engine = engine
self.TALESError = engine.getTALESError()
self.CancelAction = engine.getCancelAction()
self.stream = stream or sys.stdout
self.debug = debug
self.wrap = wrap
......@@ -269,8 +268,6 @@ class TALInterpreter:
value = self.engine.evaluateText(item[3])
if value is None:
continue
if value is self.CancelAction:
value = item[1]
elif (action == "metal" and self.currentMacro and
name[-13:] == ":define-macro" and self.metal):
name = name[:-13] + ":use-macro"
......@@ -317,9 +314,6 @@ class TALInterpreter:
text = self.engine.evaluateText(expr)
if text is None:
return
if text is self.CancelAction:
self.interpret(block)
return
text = cgi.escape(text)
self.stream_write(text)
......@@ -330,9 +324,6 @@ class TALInterpreter:
structure = self.engine.evaluateStructure(expr)
if structure is None:
return
if structure is self.CancelAction:
self.interpret(block)
return
text = str(structure)
if not repldict and not self.strictinsert:
# Take a shortcut, no error checking
......@@ -387,9 +378,6 @@ class TALInterpreter:
self.interpret(block)
return
macro = self.engine.evaluateMacro(macroExpr)
if macro is self.CancelAction:
self.interpret(block)
return
if not isCurrentVersion(macro):
raise METALError("macro %s has incompatible version %s" %
(`macroName`, `getProgramVersion(macro)`),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment