#NEWLINE# def check_for_whole_start_tag( self , i ) : #NEWLINE# #INDENT# rawdata = self . rawdata #NEWLINE# m = locatestarttagend . match ( rawdata , i ) #NEWLINE# if m : #NEWLINE# #INDENT# j = m . end ( ) #NEWLINE# next = rawdata [ j : ( j + 1 ) ] #NEWLINE# if ( next == '>' ) : #NEWLINE# #INDENT# return ( j + 1 ) #NEWLINE# #UNINDENT# if ( next == '/' ) : #NEWLINE# #INDENT# if rawdata . startswith ( '/>' , j ) : #NEWLINE# #INDENT# return ( j + 2 ) #NEWLINE# #UNINDENT# if rawdata . startswith ( '/' , j ) : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# self . updatepos ( i , ( j + 1 ) ) #NEWLINE# self . error ( 'malformed empty start tag' ) #NEWLINE# #UNINDENT# if ( next == '' ) : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# if ( next in 'abcdefghijklmnopqrstuvwxyz=/ABCDEFGHIJKLMNOPQRSTUVWXYZ' ) : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# self . updatepos ( i , self ) #NEWLINE# self . error ( 'malformed start tag' ) #NEWLINE# #UNINDENT# raise AssertionError ( 'we should not get here!' )