Commit 15f8a93
Support universal_newlines and use _translate_newlines in run_pipeline
- Factor out _translate_newlines() as a module-level function, have
Popen's method delegate to it for code sharing
- Remove rejection of universal_newlines kwarg in run_pipeline(), treat
it the same as text=True (consistent with Popen behavior)
- Use _translate_newlines() for text mode decoding in run_pipeline()
to properly handle \r\n and \r newline sequences
- Update documentation to remove mention of universal_newlines rejection
- Update test to verify universal_newlines=True works like text=True
Co-authored-by: Claude <noreply@anthropic.com>1 parent 978cd76 commit 15f8a93
File tree
3 files changed
+23
-29
lines changed- Doc/library
- Lib
- test
3 files changed
+23
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | 320 | | |
324 | 321 | | |
325 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
| |||
984 | 990 | | |
985 | 991 | | |
986 | 992 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | 993 | | |
995 | 994 | | |
996 | 995 | | |
| |||
1071 | 1070 | | |
1072 | 1071 | | |
1073 | 1072 | | |
1074 | | - | |
1075 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
| 1118 | + | |
1121 | 1119 | | |
1122 | | - | |
| 1120 | + | |
1123 | 1121 | | |
1124 | | - | |
| 1122 | + | |
1125 | 1123 | | |
1126 | 1124 | | |
1127 | 1125 | | |
| |||
1686 | 1684 | | |
1687 | 1685 | | |
1688 | 1686 | | |
1689 | | - | |
1690 | | - | |
| 1687 | + | |
1691 | 1688 | | |
1692 | 1689 | | |
1693 | 1690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2123 | 2123 | | |
2124 | 2124 | | |
2125 | 2125 | | |
2126 | | - | |
2127 | | - | |
2128 | | - | |
2129 | | - | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
2133 | | - | |
2134 | | - | |
2135 | | - | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2136 | 2136 | | |
2137 | 2137 | | |
2138 | 2138 | | |
| |||
0 commit comments