summaryrefslogtreecommitdiffstats
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-03-26 16:18:52 (GMT)
committerGitHub <noreply@github.com>2020-03-26 16:18:52 (GMT)
commitb05fbe9f374bc660af3c589a1146b2026606d442 (patch)
tree2d86c47a18833500a9d4d6351065bf512a4d7d5f /Python/formatter_unicode.c
parent96686c761d0587080effc113367431a0d396eb45 (diff)
downloadcpython-b05fbe9f374bc660af3c589a1146b2026606d442.zip
cpython-b05fbe9f374bc660af3c589a1146b2026606d442.tar.gz
cpython-b05fbe9f374bc660af3c589a1146b2026606d442.tar.bz2
bpo-1812: Fix newline conversion when doctest.testfile loads from a package whose loader has a get_data method (GH-17385)
This pull request fixes the newline conversion bug originally reported in bpo-1812. When that issue was originally submitted, the open builtin did not default to universal newline mode; now it does, which makes the issue fix simpler, since the only code path that needs to be changed is the one in doctest._load_testfile where the file is loaded from a package whose loader has a get_data method. (cherry picked from commit e0b8101492f6c61dee831425b4d3dae39a953599) Co-authored-by: Peter Donis <peterdonis@alum.mit.edu>
Diffstat (limited to 'Python/formatter_unicode.c')
0 files changed, 0 insertions, 0 deletions