jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/629824 )

Change subject: config2.py: make warning more readble
......................................................................

config2.py: make warning more readble

Avoid displaying just "warn('\n'"

Change-Id: I661efb41f16bec8d7edd13911af6b5b845265f65
---
M pywikibot/config2.py
1 file changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 2c67120..76768b5 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -1063,11 +1063,11 @@
                 warn('\n' + fill(DEPRECATED_VARIABLE.format(name)),
                      _ConfigurationDeprecationWarning)
             elif name not in _future_variables:
-                warn('\n'
-                     + fill('Configuration variable "{0}" is defined in your '
-                            'user-config.py but unknown. It can be a '
-                            'misspelled one or a variable that is no longer '
-                            'supported.'.format(name)), UserWarning)
+                warn('\n' + fill('Configuration variable "{0}" is defined in '
+                                 'your user-config.py but unknown. It can be '
+                                 'a misspelled one or a variable that is no '
+                                 'longer supported.'.format(name)),
+                     UserWarning)


 _check_user_config_types(_exec_globals, _public_globals, _imports)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/629824
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: I661efb41f16bec8d7edd13911af6b5b845265f65
Gerrit-Change-Number: 629824
Gerrit-PatchSet: 3
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to