sbsv2/raptor/python/raptor_make.py
branchfix
changeset 490 b60bdff41580
parent 411 80ad0c7f75fe
child 553 7d4971eaf863
equal deleted inserted replaced
489:4d8a8d0b17c0 490:b60bdff41580
    66 			yield escape(line)
    66 			yield escape(line)
    67 
    67 
    68 def AnnoFileParseOutput(annofile):
    68 def AnnoFileParseOutput(annofile):
    69 	""" A generator that extracts log output from an emake annotation file, 
    69 	""" A generator that extracts log output from an emake annotation file, 
    70 	    perform an XML-unescape on it and "yields" it line by line.  """
    70 	    perform an XML-unescape on it and "yields" it line by line.  """
    71 	af = open(annofile, "r")
    71 	if isinstance(annofile,str):
       
    72 		af = open(annofile, "r")
       
    73 	else:
       
    74 		af = annofile
    72 
    75 
    73 	inOutput = False
    76 	inOutput = False
    74 
    77 
    75 	buildid = ""
    78 	buildid = ""
    76 	for line in af:
    79 	for line in af: