Ticket #9256: root_nodelist.diff
File root_nodelist.diff, 680 bytes (added by , 16 years ago) |
---|
-
django/template/__init__.py
250 250 self.filters = {} 251 251 for lib in builtins: 252 252 self.add_library(lib) 253 self.root_nodelist = None 253 254 254 255 def parse(self, parse_until=None): 255 256 if parse_until is None: parse_until = [] 256 257 nodelist = self.create_nodelist() 258 if self.root_nodelist is None: 259 self.root_nodelist = nodelist 257 260 while self.tokens: 258 261 token = self.next_token() 259 262 if token.token_type == TOKEN_TEXT: