From 572a6be53fd39d42288f05ab3c7c9412fc97bc4b Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Thu, 21 Sep 2017 13:31:24 +0200 Subject: 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 --- sources/pyside2/PySide2/support/signature/parser.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sources/pyside2/PySide2/support') 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): -- cgit v1.2.3