equal
deleted
inserted
replaced
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: |