Revision: 6819
Author:   nicdumz
Date:     2009-05-04 15:54:19 +0000 (Mon, 04 May 2009)

Log Message:
-----------
ReplaceLanguageLinks : 'match'.split(str) should be str.split('match')

Modified Paths:
--------------
    branches/rewrite/pywikibot/textlib.py
    trunk/pywikipedia/wikipedia.py

Modified: branches/rewrite/pywikibot/textlib.py
===================================================================
--- branches/rewrite/pywikibot/textlib.py       2009-05-04 13:43:47 UTC (rev 
6818)
+++ branches/rewrite/pywikibot/textlib.py       2009-05-04 15:54:19 UTC (rev 
6819)
@@ -397,7 +397,7 @@
             else:
                 if template:
                     # Do we have a noinclude at the end of the template?
-                    parts = '</noinclude>'.split(s2)
+                    parts = s2.split('</noinclude>')
                     lastpart = parts[-1]
                     if re.match('\s*%s' % marker, lastpart):
                         # Put the langlinks back into the noinclude's

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py      2009-05-04 13:43:47 UTC (rev 6818)
+++ trunk/pywikipedia/wikipedia.py      2009-05-04 15:54:19 UTC (rev 6819)
@@ -3700,7 +3700,7 @@
             else:
                 if template:
                     # Do we have a noinclude at the end of the template?
-                    parts = '</noinclude>'.split(s2)
+                    parts = s2.split('</noinclude>')
                     lastpart = parts[-1]
                     if re.match('\s*%s' % marker, lastpart):
                         # Put the langlinks back into the noinclude's



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to