diff --git a/django/core/template/__init__.py b/django/core/template/__init__.py index 84881d4223..a5780e4743 100644 --- a/django/core/template/__init__.py +++ b/django/core/template/__init__.py @@ -238,7 +238,6 @@ class DebugLexer(Lexer): for match in tag_re.finditer(self.template_string): start, end = match.span() - #print "%d:%d --- %s " % (start, end, self.template_string[start:end] ) if start > upto: token_tups.append( (self.template_string[upto:start], line) ) upto = start @@ -274,11 +273,10 @@ class DebugLexer(Lexer): token.source = source return token -from pprint import pformat class Parser(object): def __init__(self, tokens): self.tokens = tokens - #print pformat(self.tokens) + def parse(self, parse_until=[]): nodelist = NodeList() @@ -313,9 +311,6 @@ class Parser(object): if parse_until: self.unclosed_block_tag(token, parse_until) - #print "-------------------------------" - #print pformat(nodelist) - #print "------------------------------" return nodelist def extend_nodelist(self, nodelist, node, token): diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index 1c61a7245c..ac0ff13d36 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -217,12 +217,6 @@ TEMPLATE_TESTS = { 'exception04': ("{% extends 'inheritance17' %}{% block first %}{% echo 400 %}5678{% endblock %}", {}, template.TemplateSyntaxError), } -def cutdown(name): - global TEMPLATE_TESTS - TEMPLATE_TESTS = dict([ (name, TEMPLATE_TESTS[name])]) - print repr(TEMPLATE_TESTS[name]) - -#cutdown('basic-syntax04') # This replaces the standard template loader. def test_template_loader(template_name, template_dirs=None):