Commit 937f8314 authored by Stefan Behnel's avatar Stefan Behnel

show "except *" declaration in error messages to help distinguishing between incompatible types

parent 241cbef1
...@@ -2710,8 +2710,9 @@ class CFuncType(CType): ...@@ -2710,8 +2710,9 @@ class CFuncType(CType):
trailer = " except %s" % self.exception_value trailer = " except %s" % self.exception_value
elif self.exception_check == '+': elif self.exception_check == '+':
trailer = " except +" trailer = " except +"
else: elif self.exception_check and for_display:
" except *" # ignored # not spelled out by default, unless for human eyes
trailer = " except *"
if self.nogil: if self.nogil:
trailer += " nogil" trailer += " nogil"
if not with_calling_convention: if not with_calling_convention:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment