From fedc289138bd912384e71a91e49ef9ee7b8a0fbb Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Wed, 2 Sep 2020 12:51:10 +0200 Subject: signature: Use a clean init function to initialize it After the quick hack replacing "type.__signature__" by 'eval("type.__signature__")', we now use a clean initialization function `_init_pyside_extension` that is implanted into the __builtins__ module. This is the first of a series of improvements and simplifications that will be applied slowly with low priority. Task-number: PYSIDE-829 Task-number: PYSIDE-510 Change-Id: I9951239c73d02f47272f1a531fb4886c8181b9a7 Reviewed-by: Friedemann Kleint --- sources/shiboken2/libshiboken/embed/signature_bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken2/libshiboken/embed/signature_bootstrap.py') diff --git a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py index 3a74bb42e..b7d9d2793 100644 --- a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py +++ b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py @@ -73,7 +73,7 @@ def bootstrap(): if recursion_trap: # we are probably called from outside, already print("Recursion occurred in Bootstrap. Did you start by hand? Then it's ok.") - print("""But you should trigger start by 'eval("type.__signature__")', only!""") + print("But you should trigger start by '_init_pyside_extension()', only!") recursion_trap += 1 @contextmanager -- cgit v1.2.3