jenkins-bot has submitted this change and it was merged.
Change subject: [SYNC] added license remarks, synchronized with core
......................................................................
[SYNC] added license remarks, synchronized with core
Change-Id: Ifb0fedf5312fdb6685357ca5d908ea8970eafa12
---
M noreferences.py
1 file changed, 14 insertions(+), 7 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/noreferences.py b/noreferences.py
index af2923f..c56214e 100644
--- a/noreferences.py
+++ b/noreferences.py
@@ -33,8 +33,13 @@
bandwidth. Instead, use the -xml parameter, or use another way to generate
a list of affected articles
"""
-
+#
+# (C) Pywikibot team, 2007-2013
+#
+# Distributed under the terms of the MIT license.
+#
__version__ = '$Id$'
+#
import re
import sys
@@ -497,9 +502,11 @@
pywikibot.output(
u'Adding references tag to existing %s section...\n'
% section)
- newText = oldText[:match.end()] + u'\n' + \
- self.referencesText + u'\n' + \
- oldText[match.end():]
+ newText = (
+ oldText[:match.end()] + u'\n' +
+ self.referencesText + u'\n' +
+ oldText[match.end():]
+ )
return newText
else:
break
@@ -597,7 +604,7 @@
except pywikibot.EditConflict:
pywikibot.output(u'Skipping %s because of edit conflict'
% (page.title(),))
- except pywikibot.SpamfilterError, e:
+ except pywikibot.SpamfilterError as e:
pywikibot.output(
u'Cannot change %s because of blacklist entry %s'
% (page.title(), e.url))
@@ -690,8 +697,8 @@
else:
if not namespaces:
namespaces = [0]
- cat = catlib.Category(site, "%s:%s" % (site.category_namespace(),
- cat))
+ cat = catlib.Category(site, "%s:%s" % (
+ site.category_namespace(), cat))
gen = pagegenerators.CategorizedPageGenerator(cat)
if not gen:
pywikibot.showHelp('noreferences')
--
To view, visit
https://gerrit.wikimedia.org/r/104028
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifb0fedf5312fdb6685357ca5d908ea8970eafa12
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Alex S.H. Lin <alexsh(a)mail2000.com.tw>
Gerrit-Reviewer: Huji <huji.huji(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Siebrand <siebrand(a)wikimedia.org>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot