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

-- 
To view, visit https://gerrit.wikimedia.org/r/166514
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I08259a96dd82275801a1ad9f48df8852cc244f26
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Taueres <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to