diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-04 05:28:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 05:28:25 (GMT) |
commit | a443c310ac87f214164cb1e3f8af3f799668c867 (patch) | |
tree | 7216629cd0b28b0580141801a51a34df5a602046 /Tools | |
parent | e52e87c349feeee77445205829bfc8db9fe4b80e (diff) | |
download | cpython-a443c310ac87f214164cb1e3f8af3f799668c867.zip cpython-a443c310ac87f214164cb1e3f8af3f799668c867.tar.gz cpython-a443c310ac87f214164cb1e3f8af3f799668c867.tar.bz2 |
gh-107609: Fix duplicate module check in Argument Clinic (#107610)
Also remove duplicate module def from _testcapi.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/clinic/clinic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 733a83e..7525c1c 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -4472,7 +4472,7 @@ class DSLParser: if cls: fail("Can't nest a module inside a class!") - if name in module.classes: + if name in module.modules: fail("Already defined module " + repr(name) + "!") m = Module(name, module) |