Doc: Prettier exception hierarchy. (GH-26533)

This commit is contained in:
Julien Palard 2021-06-11 08:53:52 +02:00 committed by GitHub
parent 62f1d2b3d7
commit c4955e2c4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 65 deletions

View file

@ -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('(')