summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ParseTreeTransforms.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-06-09 21:40:06 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-06-09 21:40:06 +0200
commit2b4c89ada87b126bfd6b70048e98e1ec0a528867 (patch)
treeabd62ed3d4d10dde308f01247a7864fe81ae4c31 /Cython/Compiler/ParseTreeTransforms.py
parent2f6c69b1e3d344239399f4f7188a52d5f29b51c3 (diff)
downloadcython-linting.tar.gz
Clean up some operator usages and style issues, and enforce them with pycodestyle.linting
Diffstat (limited to 'Cython/Compiler/ParseTreeTransforms.py')
-rw-r--r--Cython/Compiler/ParseTreeTransforms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py
index ae73801ab..7ccee4fb7 100644
--- a/Cython/Compiler/ParseTreeTransforms.py
+++ b/Cython/Compiler/ParseTreeTransforms.py
@@ -2539,7 +2539,7 @@ class AlignFunctionDefinitions(CythonTransform):
return None
node = node.as_cfunction(pxd_def)
elif (self.scope.is_module_scope and self.directives['auto_cpdef']
- and not node.name in self.imported_names
+ and node.name not in self.imported_names
and node.is_cdef_func_compatible()):
# FIXME: cpdef-ing should be done in analyse_declarations()
node = node.as_cfunction(scope=self.scope)