[Twisted-Python] Re: [Twisted-commits] r15071 - More test cleanup and bug fixes.

Jean-Paul Calderone exarkun at divmod.com
Tue Nov 8 15:46:48 MST 2005


On Tue, 08 Nov 2005 14:30:26 -0700, Justin Johnson 
>Modified: branches/justinj/issue1008/twisted/web/test/test_cgi.py
>==============================================================================
>--- branches/justinj/issue1008/twisted/web/test/test_cgi.py	(original)
>+++ branches/justinj/issue1008/twisted/web/test/test_cgi.py	Tue Nov  8 14:30:26 2005
>@@ -40,6 +40,11 @@
> print "readallinput ok"
> '''
>
>+if sys.platform.startswith('win'):
>+    EOL = '\r\n'
>+else:
>+    EOL = '\n'
>+

twisted.python.runtime.platform is better thing to check, here.  But rather than checking the platform type, how about using os.linesep?

Jean-Paul




More information about the Twisted-Python mailing list