XZise has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/158364

Change subject: [FIX] Category: Print info that dump was loaded to stdout
......................................................................

[FIX] Category: Print info that dump was loaded to stdout

When category.py script loads the category dump, it informs the user
about that, but because it's printed to stderr the script test fails.

Change-Id: I73b6b8d9672529c16b5a25c218cc2157e1bf1992
---
M scripts/category.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/64/158364/1

diff --git a/scripts/category.py b/scripts/category.py
index 95817ae..60a53ce 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -146,7 +146,7 @@
                     filename = config.datafilepath(filename)
                 f = bz2.BZ2File(filename, 'r')
                 pywikibot.output(u'Reading dump from %s'
-                                 % config.shortpath(filename))
+                                 % config.shortpath(filename), toStdout=True)
                 databases = pickle.load(f)
                 f.close()
                 # keys are categories, values are 2-tuples with lists as

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I73b6b8d9672529c16b5a25c218cc2157e1bf1992
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <commodorefabia...@gmx.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to