diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -818,7 +818,8 @@ class XMLFilterBaseTest(unittest.TestCase): # =========================================================================== with open(TEST_XMLFILE_OUT, 'rb') as f: - xml_test_out = f.read() + # the newlines may not be strictly LF; make sure they are + xml_test_out = f.read().replace(b"\r\n", b"\n") class ExpatReaderTest(XmlTestBase): diff --git a/Tools/unicode/genwincodecs.bat b/Tools/unicode/genwincodecs.bat --- a/Tools/unicode/genwincodecs.bat +++ b/Tools/unicode/genwincodecs.bat @@ -1,7 +1,7 @@ -@rem Recreate some python charmap codecs from the Windows function -@rem MultiByteToWideChar. - -@cd /d %~dp0 -@mkdir build -@rem Arabic DOS code page -c:\python30\python genwincodec.py 720 > build/cp720.py +@rem Recreate some python charmap codecs from the Windows function +@rem MultiByteToWideChar. + +@cd /d %~dp0 +@mkdir build +@rem Arabic DOS code page +c:\python30\python genwincodec.py 720 > build/cp720.py