#NEWLINE# def pos( self , t ) : #NEWLINE# #INDENT# 'Reprocess location information (see parse() for more details).' #NEWLINE# ln = ( t . source_pos . lineno - 1 ) #NEWLINE# if ( t . value and ( t . value [ 0 ] == '\n' ) ) : #NEWLINE# #INDENT# ln -= 1 #NEWLINE# #UNINDENT# col = ( t . source_pos . colno - 1 ) #NEWLINE# line = ( self . lines [ ln ] if ( ln < len ( self . lines ) ) else '' ) #NEWLINE# return ( ( ln , col ) , ( ln , ( col + len ( t . value ) ) ) , line , self . fn )