summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-16 17:51:05 (GMT)
committerGitHub <noreply@github.com>2021-10-16 17:51:05 (GMT)
commit5df35faf3611b459f7f32bfe9fd2ffa7fb2dc59e (patch)
tree0e71b2c3918b37152ee28f0f1a020c4f9ad94ec7 /Misc
parent855d6247adb39d4e38b698b89e519587318abd80 (diff)
downloadcpython-5df35faf3611b459f7f32bfe9fd2ffa7fb2dc59e.zip
cpython-5df35faf3611b459f7f32bfe9fd2ffa7fb2dc59e.tar.gz
cpython-5df35faf3611b459f7f32bfe9fd2ffa7fb2dc59e.tar.bz2
bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855)
(cherry picked from commit fe0d9e22a52a10c4cbe52254b51f2d4e74d83568) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-10-10-16-14-33.bpo-45249.xqLliz.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-10-10-16-14-33.bpo-45249.xqLliz.rst b/Misc/NEWS.d/next/Library/2021-10-10-16-14-33.bpo-45249.xqLliz.rst
new file mode 100644
index 0000000..1d5a857
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-10-10-16-14-33.bpo-45249.xqLliz.rst
@@ -0,0 +1,2 @@
+Fix the behaviour of :func:`traceback.print_exc` when displaying the caret
+when the ``end_offset`` in the exception is set to 0. Patch by Pablo Galindo