#NEWLINE# @ classmethod #NEWLINE# def parse( cls , text ) : #NEWLINE# #INDENT# match = cls . pattern . match ( text ) #NEWLINE# if match : #NEWLINE# #INDENT# filename = match . group ( 'filename' ) . strip ( ) #NEWLINE# line = int ( match . group ( 'line' ) ) #NEWLINE# return FileLocation ( line , line ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# filename = text . strip ( ) #NEWLINE# return FileLocation ( filename )