diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-10 15:16:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 15:16:04 +0100 |
commit | 242c636a63ac2d8b002ace37388dce9273a9048a (patch) | |
tree | 82f8a101fb4461d29bc9dd1e2bc147bb99c706f6 /doc/tools/make_rst.py | |
parent | f21a62b62027a88ea90de539a48df8e280a820e8 (diff) | |
parent | 1bdb82c64e65f23381183051ef1fc9856a7830f8 (diff) |
Merge pull request #57909 from akien-mga/codespell
Diffstat (limited to 'doc/tools/make_rst.py')
-rwxr-xr-x | doc/tools/make_rst.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 68f3b66f43..365beb434b 100755 --- a/doc/tools/make_rst.py +++ b/doc/tools/make_rst.py @@ -536,19 +536,19 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S # Inheritance tree # Ascendants if class_def.inherits: - inh = class_def.inherits.strip() + inherits = class_def.inherits.strip() f.write("**" + translate("Inherits:") + "** ") first = True - while inh in state.classes: + while inherits in state.classes: if not first: f.write(" **<** ") else: first = False - f.write(make_type(inh, state)) - inode = state.classes[inh].inherits + f.write(make_type(inherits, state)) + inode = state.classes[inherits].inherits if inode: - inh = inode.strip() + inherits = inode.strip() else: break f.write("\n\n") |