(self, trail)
return struct.unpack_from('<H', trail, 2)[0]
Unpack a line number token trail, -1 if end of program.
Unpack a line number token trail, -1 if end of program.
Unpack a line number token trail - 1 if end of program .
def token_to_line_number(self, trail):
        """Unpack a line number token trail, -1 if end of program."""
        if len(trail) < 4 or trail[:2] == b'\0\0':
            return -1
        return struct.unpack_from('<H', trail, 2)[0]
def token_to_line_number ( self , trail ) : if len ( trail ) < 4 or trail [ : 2 ] == b'\0\0' : return - 1 return struct . unpack_from ( '<H' , trail , 2 ) [ 0 ]