Matanya has uploaded a new change for review.
https://gerrit.wikimedia.org/r/124152
Change subject: noreferences: one more hebrew template
......................................................................
noreferences: one more hebrew template
Change-Id: Ie737ffb4cfc2a80c24a6f35b1c74062db379f227
---
M scripts/noreferences.py
1 file changed, 10 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/52/124152/1
diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 13b8756..4c78c70 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -34,7 +34,7 @@
a list of affected articles
"""
#
-# (C) Pywikibot team, 2007-2014
+# (C) Pywikibot team, 2007-2013
#
# Distributed under the terms of the MIT license.
#
@@ -44,7 +44,8 @@
import re
import pywikibot
from pywikibot import i18n
-from pywikibot import pagegenerators
+import pagegenerators
+import catlib
# This is required for the text that is shown when you run this script
# with the parameter -help.
@@ -358,7 +359,7 @@
u'فهرست منابع'],
'fi': [u'Viitteet', u'Reflist'],
'fr': [u'Références', u'Notes', u'References', u'Reflist'],
- 'he': [u'הערה'],
+ 'he': [u'הערה', u'הערות שוליים'],
'hsb': [u'Referency'],
'hu': [u'reflist', u'források', u'references', u'megjegyzések'],
'is': [u'reflist'],
@@ -391,7 +392,7 @@
'dsb': u'{{referency}}',
'fa': u'{{پانویس}}',
'fi': u'{{viitteet}}',
- 'he': u'{{הערה}}',
+ 'he': u'{{הערות שוליים}}',
'hsb': u'{{referency}}',
'hu': u'{{Források}}',
'pl': u'{{Przypisy}}',
@@ -718,7 +719,7 @@
else:
if not namespaces:
namespaces = [0]
- cat = pywikibot.Category(site, "%s:%s" % (
+ cat = catlib.Category(site, "%s:%s" % (
site.category_namespace(), cat))
gen = pagegenerators.CategorizedPageGenerator(cat)
if not gen:
@@ -731,4 +732,7 @@
bot.run()
if __name__ == "__main__":
- main()
+ try:
+ main()
+ finally:
+ pywikibot.stopme()
--
To view, visit https://gerrit.wikimedia.org/r/124152
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie737ffb4cfc2a80c24a6f35b1c74062db379f227
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Matanya <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits