sbsv2/raptor/python/raptor_make.py
branchfix
changeset 490 b60bdff41580
parent 411 80ad0c7f75fe
child 553 7d4971eaf863
--- a/sbsv2/raptor/python/raptor_make.py	Tue Apr 20 12:08:50 2010 +0100
+++ b/sbsv2/raptor/python/raptor_make.py	Tue Apr 20 13:41:38 2010 +0100
@@ -68,7 +68,10 @@
 def AnnoFileParseOutput(annofile):
 	""" A generator that extracts log output from an emake annotation file, 
 	    perform an XML-unescape on it and "yields" it line by line.  """
-	af = open(annofile, "r")
+	if isinstance(annofile,str):
+		af = open(annofile, "r")
+	else:
+		af = annofile
 
 	inOutput = False