From b0745097e1b61c996220b585289fd00b52fee964 Mon Sep 17 00:00:00 2001 From: sweeneyde Date: Sat, 30 May 2020 15:16:52 -0400 Subject: [PATCH] remove extra whitespace --- Lib/test/test_traceback.py | 6 +++--- Python/errors.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py index aa5f67673d5..5b362cfc7d3 100644 --- a/Lib/test/test_traceback.py +++ b/Lib/test/test_traceback.py @@ -631,7 +631,7 @@ class BaseExceptionReportingTests: self.assertEqual(blocks[1], cause_message) self.check_zero_div(blocks[0]) self.assertIn('inner_raise() # Marker', blocks[2]) - + def test_rho_context(self): # Make sure that rho-shaped linked lists of __context__s do # not get stuck in an infinite loop. See bpo-40696. @@ -643,13 +643,13 @@ class BaseExceptionReportingTests: x = exc x.__context__ = x raise ValueError #rho1 - + blocks = boundaries.split(self.get_report(cm.exception)) self.assertEqual(len(blocks), 3, blocks) self.assertIn('RuntimeError #rho1', blocks[0]) self.assertEqual(blocks[1], context_message) self.assertIn('ValueError', blocks[2]) - + def test_rho_context_2(self): with self.assertRaises(ValueError) as cm: # ValueError -> IndexError -> SyntaxError <=> ZeroDivisionError diff --git a/Python/errors.c b/Python/errors.c index 6568af969b0..c2911832fee 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -173,7 +173,7 @@ _PyErr_SetObject(PyThreadState *tstate, PyObject *exception, PyObject *value) hare = GET_CONTEXT(hare); } /* Now hare is the first intersection. - We want to disconnect hare from its second predecessor. + We want to disconnect hare from its second predecessor. For example: A --> B --> C --> D --> E --> C --> ... becomes