mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Doc: Prettier exception hierarchy. (GH-26533)
This commit is contained in:
parent
62f1d2b3d7
commit
c4955e2c4f
3 changed files with 66 additions and 65 deletions
|
|
@ -44,7 +44,7 @@ def test_inheritance(self):
|
|||
last_depth = 0
|
||||
for exc_line in inheritance_tree:
|
||||
exc_line = exc_line.rstrip()
|
||||
depth = exc_line.rindex('-')
|
||||
depth = exc_line.rindex('─')
|
||||
exc_name = exc_line[depth+2:] # Slice past space
|
||||
if '(' in exc_name:
|
||||
paren_index = exc_name.index('(')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue