Skip to content

Commit 161d993

Browse files
committed
Revert "Workaround warning in cython 3.0.9 (#37560)"
This reverts commit cd652c6.
1 parent 0f4460e commit 161d993

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/sage/misc/cython.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def cython(filename, verbose=0, compile_message=False,
236236
...
237237
RuntimeError: Error compiling Cython file:
238238
...
239-
...: 'sage/misc.pxd' not found...
239+
...: 'sage/misc.pxd' not found
240240
"""
241241
if not filename.endswith('pyx'):
242242
print("Warning: file (={}) should have extension .pyx".format(filename), file=sys.stderr)
@@ -382,12 +382,6 @@ def cython(filename, verbose=0, compile_message=False,
382382
"Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.\n",
383383
"", cython_messages, 0, re.MULTILINE)
384384

385-
# workaround for https://github.com/sagemath/sage/issues/37560
386-
# triggered by Cython 3.0.9
387-
cython_messages = re.sub(
388-
"^warning: .*noexcept clause is ignored for function returning Python object\n",
389-
"", cython_messages, 0, re.MULTILINE)
390-
391385
sys.stderr.write(cython_messages)
392386
sys.stderr.flush()
393387

0 commit comments

Comments
 (0)