jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/838848 )
Change subject: [setup] Ignore globals from loading into metadata dict ...................................................................... [setup] Ignore globals from loading into metadata dict If no parameters are given for locals all key/value pairs are stored in the first mapping including __buildins__ which are the globals. To ignore then just pass None for globals and keep metadata mapping for locals. Change-Id: I00caee679f5c5a92cc2673c420ac9d2368698db0 --- M setup.py 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/setup.py b/setup.py index 192de71..8057398 100755 --- a/setup.py +++ b/setup.py @@ -143,7 +143,7 @@ name = 'pywikibot' path = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(path, name, '__metadata__.py')) as f: - exec(f.read(), metadata) + exec(f.read(), None, metadata) assert metadata.__name__ == name -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/838848 To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: I00caee679f5c5a92cc2673c420ac9d2368698db0 Gerrit-Change-Number: 838848 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <[email protected]> Gerrit-Reviewer: Xqt <[email protected]> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
