[Python-checkins] r71151 - python/branches/py3k/Lib/_pyio.py
antoine.pitrou
python-checkins at python.org
Sat Apr 4 16:09:32 CEST 2009
Author: antoine.pitrou
Date: Sat Apr 4 16:09:30 2009
New Revision: 71151
Log:
Fix test_memoryio under Windows
Modified:
python/branches/py3k/Lib/_pyio.py
Modified: python/branches/py3k/Lib/_pyio.py
==============================================================================
--- python/branches/py3k/Lib/_pyio.py (original)
+++ python/branches/py3k/Lib/_pyio.py Sat Apr 4 16:09:30 2009
@@ -1829,6 +1829,10 @@
encoding="utf-8",
errors="strict",
newline=newline)
+ # Issue #5645: make universal newlines semantics the same as in the
+ # C version, even under Windows.
+ if newline is None:
+ self._writetranslate = False
if initial_value:
if not isinstance(initial_value, str):
initial_value = str(initial_value)
More information about the Python-checkins
mailing list