2012-03-22 | Paul Boddie | raw files shortlog changelog graph | Removed request.flush usage where the method is not present. This is probably only useful when trying to see exactly where the parser is failing. | |
parsers/graphviz.py (file) |
1.1 --- a/parsers/graphviz.py Wed Mar 07 00:49:10 2012 +0100 1.2 +++ b/parsers/graphviz.py Thu Mar 22 23:06:36 2012 +0100 1.3 @@ -77,7 +77,10 @@ 1.4 page = request.page 1.5 _ = request.getText 1.6 1.7 - request.flush() # to identify error text 1.8 + # NOTE: Flushing the request is not supported in 1.9. 1.9 + 1.10 + if hasattr(request, "flush"): 1.11 + request.flush() # to identify error text 1.12 1.13 filter = self.FILTERS[0] 1.14 format = 'png'