]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104683: Argument Clinic: Remove unreachable code from _module_and_class() (#108092)
authorErlend E. Aasland <erlend@python.org>
Thu, 17 Aug 2023 18:16:08 +0000 (20:16 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2023 18:16:08 +0000 (18:16 +0000)
commit292a22bdc22f2aa70c96e9e53ca6d6b0c5f8d5bf
tree1cc7b0b802414d13ec24520f5ee6ae06a982c6a7
parent80f30cf51bd89411ef1220d714b33667d6a39901
gh-104683: Argument Clinic: Remove unreachable code from _module_and_class() (#108092)

'not hasattr(parent, "classes")' is always false, since 'parent' is an
instance of either the Module, Class, or Clinic classes, and all of
them has a "classes" attribute.
Tools/clinic/clinic.py