[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/dochttp.py Don't strip trailing whitespace from non-blank lines when outputing the test.

Florent Guillaume fg at nuxeo.com
Wed Sep 15 11:10:21 EDT 2004


Log message for revision 27536:
  Don't strip trailing whitespace from non-blank lines when outputing the test.
  


Changed:
  U   Zope3/trunk/src/zope/app/tests/dochttp.py


-=-
Modified: Zope3/trunk/src/zope/app/tests/dochttp.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/dochttp.py	2004-09-15 02:32:02 UTC (rev 27535)
+++ Zope3/trunk/src/zope/app/tests/dochttp.py	2004-09-15 15:10:20 UTC (rev 27536)
@@ -119,7 +119,7 @@
     print
     print '  >>> print http(r"""'
     print '  ...', '\n  ... '.join(request.lines())+'""")'
-    print ' ', '\n  '.join([line.rstrip() or '<BLANKLINE>'
+    print ' ', '\n  '.join([line.rstrip() and line or '<BLANKLINE>'
                              for line in response.lines()])
 
 class Message:



More information about the Zope3-Checkins mailing list