[Pywikipedia-l] SVN: [5474] trunk/pywikipedia/blockpageschecker.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Fri May 30 12:51:11 UTC 2008
Revision: 5474
Author: filnik
Date: 2008-05-30 12:51:10 +0000 (Fri, 30 May 2008)
Log Message:
-----------
Fixing an italian regex + texti?echo \'n zo o!! NicDumZpython blockpageschecker.py -page:Utente:Filnik/Sandbox Don't make this typo, please! >:-( So: Bugfix, the semidetection was bugged
Modified Paths:
--------------
trunk/pywikipedia/blockpageschecker.py
Modified: trunk/pywikipedia/blockpageschecker.py
===================================================================
--- trunk/pywikipedia/blockpageschecker.py 2008-05-30 12:00:07 UTC (rev 5473)
+++ trunk/pywikipedia/blockpageschecker.py 2008-05-30 12:51:10 UTC (rev 5474)
@@ -90,7 +90,7 @@
templateTotalProtection = {
'en': None,
'it':[r'\{\{(?:[Tt]emplate:|)[Aa]vvisoblocco(?:|[ _]scad\|(?:.*?)|minaccia|cancellata)\}\}',
- r'\{\{(?:[Tt]emplate:|)(?:[Cc][Tt]|[Cc]anc fatte|[Cc][Ee].*?)\}\}', r'<div class="toccolours[ _]itwiki[ _]template[ _]avviso">(?:\s|\n)*?[Qq]uesta pagina'],
+ r'\{\{(?:[Tt]emplate:|)(?:[Cc][Tt]|[Cc]anc fatte|[Cc][Ee])\}\}', r'<div class="toccolours[ _]itwiki[ _]template[ _]avviso">(?:\s|\n)*?[Qq]uesta pagina'],
'fr':[ur'\{\{(?:[Tt]emplate:|[Mm]odèle:|)[Pp]rotection(|[^\}]*)\}\}',
ur'\{\{(?:[Tt]emplate:|[Mm]odèle:|)(?:[Pp]age|[Aa]rchive|[Mm]odèle) protégée?(|[^\}]*)\}\}'],
'ja':[ur'\{\{(?:[Tt]emplate:|)保護(?:[Ss]|)(?:\|.+|)\}\}(\n+?|)'],
@@ -291,7 +291,7 @@
# page is not edit-protected
# Deleting the template because the page doesn't need it.
replaceToPerform = u'|'.join(TTP + TSP)
- texti, changes = re.subn('(?:<noinclude>|)(%s)(?:</noinclude>|)' % replaceToPerform, '', text)
+ text, changes = re.subn('(?:<noinclude>|)(%s)(?:</noinclude>|)' % replaceToPerform, '', text)
wikipedia.output(u'The page is editable for all, deleting the template...')
elif editRestr[0] == 'sysop':
More information about the Pywikipedia-l
mailing list