summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:59:47 +0200
committerStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:59:47 +0200
commite11ff38357fb928cbc207184e2dd1c60c2344571 (patch)
treee9e1d0951cc65ef5140d82d404965543aa61454d
parentfd3b9bbaf3a8e4c83dd18a4ce099607b38d66933 (diff)
downloadcython-e11ff38357fb928cbc207184e2dd1c60c2344571.tar.gz
Remove useless parentheses.
-rw-r--r--Cython/Compiler/TypeSlots.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py
index b3327088c..e2b692481 100644
--- a/Cython/Compiler/TypeSlots.py
+++ b/Cython/Compiler/TypeSlots.py
@@ -254,11 +254,11 @@ class SlotDescriptor(object):
py3 = self.py3
guard = None
if ifdef:
- guard = ("#if %s" % ifdef)
+ guard = "#if %s" % ifdef
elif not py3 or py3 == '<RESERVED>':
- guard = ("#if PY_MAJOR_VERSION < 3")
+ guard = "#if PY_MAJOR_VERSION < 3"
elif not py2:
- guard = ("#if PY_MAJOR_VERSION >= 3")
+ guard = "#if PY_MAJOR_VERSION >= 3"
return guard
def generate_spec(self, scope, code):