commit | 3be8e220ede7764a403b74eb2051aa703dde2626 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Nov 20 14:44:02 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Nov 20 14:44:02 2020 +0100 |
tree | 6e518107c32a37adf642f1ebf35a98eb1e191f30 | |
parent | a6109ef68d421712ba368ef502c4789e8de113e0 [diff] |
bpo-42403: Use @staticmethod in importlib (GH-23395) Use @staticmethod on methods using @classmethod but don't use their cls parameter on the following classes: * BuiltinImporter * FrozenImporter * WindowsRegistryFinder * PathFinder Leave methods using @_requires_builtin or @_requires_frozen unchanged, since this decorator requires the wrapped method to have an extra parameter (cls or self).