jenkins-bot has submitted this change and it was merged.
Change subject: config2: remove useless if branch ......................................................................
config2: remove useless if branch
Removed branch since its condition is always evaluated to True because of line 731
Change-Id: I08259a96dd82275801a1ad9f48df8852cc244f26 --- M pywikibot/config2.py 1 file changed, 1 insertion(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved Mpaa: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index b9a724f..523c764 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -732,8 +732,7 @@ _gl = list(_glv.keys()) _tp = {} for _key in _gl: - if _key[0] != '_': - _tp[_key] = type(globals()[_key]) + _tp[_key] = type(globals()[_key])
# Create an environment for user-config.py which is # a shallow copy of the core config settings, so that