Skip to content
Snippets Groups Projects
Commit d988e167 authored by Jon Parise's avatar Jon Parise
Browse files

Use the `cls` convention in _ASTCheckMeta

parent eb803a0e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -39,11 +39,11 @@ else:
 
 
class _ASTCheckMeta(type):
def __init__(self, class_name, bases, namespace):
def __init__(cls, class_name, bases, namespace):
try:
self._checks.append(self())
cls._checks.append(cls())
except AttributeError:
self._checks = []
cls._checks = []
 
 
def _err(self, node, code, name=None):
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment