aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/support/signature
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2017-09-21 13:31:24 +0200
committerChristian Tismer <tismer@stackless.com>2017-09-25 08:15:10 +0000
commit572a6be53fd39d42288f05ab3c7c9412fc97bc4b (patch)
tree3fc21b45a6d3e16b4f525811273dbfd5c63a8b7c /sources/pyside2/PySide2/support/signature
parentf643be1153275b804e8846b54afccbfef8db43c8 (diff)
Signature: Improve error reporting
It is likely that with Qt 5.9 we get new signature text that is not recognized. This becomes a problem because COIN takes much time. This patch does not stop on the first parser error, but collects all warnings and raises an error at the end. Task-number: PYSIDE-510 Change-Id: I898e0a7a59e8313c115d7ce8160908bf85d4140c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/support/signature')
-rw-r--r--sources/pyside2/PySide2/support/signature/parser.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/sources/pyside2/PySide2/support/signature/parser.py b/sources/pyside2/PySide2/support/signature/parser.py
index c944fe856..0224095b5 100644
--- a/sources/pyside2/PySide2/support/signature/parser.py
+++ b/sources/pyside2/PySide2/support/signature/parser.py
@@ -48,7 +48,6 @@ import functools
from .mapping import type_map, update_mapping, __dict__ as namespace
_DEBUG = False
-_BREAK_ON_ERROR = False
TYPE_MAP_DOC = """
The type_map variable is central for the signature package.
@@ -165,11 +164,7 @@ def _resolve_value(thing, valtype, line):
UNRECOGNIZED: {!r}
OFFENDING LINE: {!r}
-
- """.format(thing, line),
- RuntimeWarning)
- if _BREAK_ON_ERROR:
- raise RuntimeError
+ """.format(thing, line), RuntimeWarning)
return thing
def _resolve_type(thing, line):