sbsv2/raptor/python/raptor_make.py
changeset 552 0d12d79bd42d
parent 490 b60bdff41580
child 553 7d4971eaf863
equal deleted inserted replaced
442:a0f5dc257779 552:0d12d79bd42d
    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: