[prev in list] [next in list] [prev in thread] [next in thread]
List: pywikipediabot-users
Subject: [Pywikipedia-l] SVN: [5276] trunk/pywikipedia/checkimages.py
From: filnik () mayflower ! knams ! wikimedia ! org
Date: 2008-04-26 19:06:26
Message-ID: E1Jppj8-00043o-4c () lily ! knams ! wikimedia ! org
[Download RAW message or body]
Revision: 5276
Author: filnik
Date: 2008-04-26 19:06:25 +0000 (Sat, 26 Apr 2008)
Log Message:
-----------
Holy cr*p, bugfix, thanks God it's a bug only for italians not for all
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2008-04-26 12:05:51 UTC (rev 5275)
+++ trunk/pywikipedia/checkimages.py 2008-04-26 19:06:25 UTC (rev 5276)
@@ -926,7 +926,8 @@
wikipedia.output(u'A white template \
found, skipping the template...')
if l != '' and l != ' ': # Check \
that l is not nothing or a space
# Deleting! (replace the \
template with nothing)
- g = g.lower().replace('{{%s' \
% l, '') + print l
+ g = \
re.sub(r'\{\{(?:template:|)%s' % l.lower(), r'', g.lower())
hiddenTemplateFound = True
for a_word in something: # something is the array with {{, \
MIT License and so on. if a_word in g:
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic