summaryrefslogtreecommitdiff
path: root/Cython/Compiler/Parsing.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/Parsing.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/Parsing.py')
-rw-r--r--Cython/Compiler/Parsing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py
index 99ae8a10e..466300c67 100644
--- a/Cython/Compiler/Parsing.py
+++ b/Cython/Compiler/Parsing.py
@@ -2654,7 +2654,7 @@ def p_memoryviewslice_access(s, base_type_node):
return result
def looking_at_name(s):
- return s.sy == 'IDENT' and not s.systring in calling_convention_words
+ return s.sy == 'IDENT' and s.systring not in calling_convention_words
def looking_at_expr(s):
if s.systring in base_type_start_words:
@@ -2914,7 +2914,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag,
fatal=False)
name += op
elif op == 'IDENT':
- op = s.systring;
+ op = s.systring
if op not in supported_overloaded_operators:
s.error("Overloading operator '%s' not yet supported." % op,
fatal=False)