diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-06-09 21:40:06 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-06-09 21:40:06 +0200 |
commit | 2b4c89ada87b126bfd6b70048e98e1ec0a528867 (patch) | |
tree | abd62ed3d4d10dde308f01247a7864fe81ae4c31 /Cython/Compiler/Buffer.py | |
parent | 2f6c69b1e3d344239399f4f7188a52d5f29b51c3 (diff) | |
download | cython-linting.tar.gz |
Clean up some operator usages and style issues, and enforce them with pycodestyle.linting
Diffstat (limited to 'Cython/Compiler/Buffer.py')
-rw-r--r-- | Cython/Compiler/Buffer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Compiler/Buffer.py b/Cython/Compiler/Buffer.py index 75aa7b0c0..79687163c 100644 --- a/Cython/Compiler/Buffer.py +++ b/Cython/Compiler/Buffer.py @@ -146,12 +146,12 @@ def analyse_buffer_options(globalpos, env, posargs, dictargs, defaults=None, nee options = {} for name, (value, pos) in dictargs.items(): - if not name in buffer_options: + if name not in buffer_options: raise CompileError(pos, ERR_BUF_OPTION_UNKNOWN % name) options[name] = value for name, (value, pos) in zip(buffer_options, posargs): - if not name in buffer_options: + if name not in buffer_options: raise CompileError(pos, ERR_BUF_OPTION_UNKNOWN % name) if name in options: raise CompileError(pos, ERR_BUF_DUP % name) @@ -159,7 +159,7 @@ def analyse_buffer_options(globalpos, env, posargs, dictargs, defaults=None, nee # Check that they are all there and copy defaults for name in buffer_options: - if not name in options: + if name not in options: try: options[name] = defaults[name] except KeyError: |