diff options
author | Christian Tismer <tismer@stackless.com> | 2020-09-02 12:51:10 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-09-04 12:52:16 +0200 |
commit | fedc289138bd912384e71a91e49ef9ee7b8a0fbb (patch) | |
tree | 284ff4982d53157a226d9f13a51bc4fbcdbaa661 /sources/shiboken2/libshiboken/embed/signature_bootstrap.py | |
parent | 2bd69b9877f7b240512f03b4df042adf9acea744 (diff) |
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 <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2/libshiboken/embed/signature_bootstrap.py')
-rw-r--r-- | sources/shiboken2/libshiboken/embed/signature_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |