Ticket #4176: broken_token_source.patch

File broken_token_source.patch, 653 bytes (added by Chris Beaven, 17 years ago)
  • django/template/__init__.py

     
    237237            result.append(self.create_token(last_bit, (upto, upto + len(last_bit)), False))
    238238        return result
    239239
    240     def create_token(self, token_string, source, in_tag):
     240    def create_token(self, token_string, loc, in_tag):
    241241        token = super(DebugLexer, self).create_token(token_string, in_tag)
    242         token.source = source
     242        token.source = (self.origin, loc)
    243243        return token
    244244
    245245class Parser(object):
Back to Top