Ticket #4176: broken_token_source.patch
File broken_token_source.patch, 653 bytes (added by , 18 years ago) |
---|
-
django/template/__init__.py
237 237 result.append(self.create_token(last_bit, (upto, upto + len(last_bit)), False)) 238 238 return result 239 239 240 def create_token(self, token_string, source, in_tag):240 def create_token(self, token_string, loc, in_tag): 241 241 token = super(DebugLexer, self).create_token(token_string, in_tag) 242 token.source = source242 token.source = (self.origin, loc) 243 243 return token 244 244 245 245 class Parser(object):