-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3-Cython: fix regression in cython 3.0.11.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Revert https://github.com/cython/cython/pull/6124 which causes a | ||
serious regression, e.g. sagemath FTBS with cython 3.0.11 | ||
|
||
--- a/Cython/Compiler/Nodes.py | ||
+++ b/Cython/Compiler/Nodes.py | ||
@@ -710,10 +710,8 @@ class CFuncDeclaratorNode(CDeclaratorNode): | ||
and not self.has_explicit_exc_clause | ||
and self.exception_check | ||
and visibility != 'extern'): | ||
- # If function is already declared from pxd, the exception_check has already correct value. | ||
- if not (self.declared_name() in env.entries and not in_pxd): | ||
- self.exception_check = False | ||
# implicit noexcept, with a warning | ||
+ self.exception_check = False | ||
warning(self.pos, | ||
"Implicit noexcept declaration is deprecated." | ||
" Function declaration should contain 'noexcept' keyword.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters