[prev in list] [next in list] [prev in thread] [next in thread]
List: pywikipediabot-users
Subject: [pyWikipediaBot-users] pywikipedia wikipedia.py,1.702,1.703
From: Andre Engels <a_engels () users ! sourceforge ! net>
Date: 2006-05-30 9:35:31
Message-ID: E1Fl0dS-000319-8h () mail ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28190
Modified Files:
wikipedia.py
Log Message:
When a namespace has been found, do not scan the rest of the title for namespace or interwiki
Index: wikipedia.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/wikipedia.py,v
retrieving revision 1.702
retrieving revision 1.703
diff -C2 -d -r1.702 -r1.703
*** wikipedia.py 24 May 2006 07:49:31 -0000 1.702
--- wikipedia.py 30 May 2006 09:35:25 -0000 1.703
***************
*** 256,259 ****
--- 256,260 ----
t = m.group(2)
self._namespace = ns
+ break
else:
ns = self.site().family.getNsIndex( self.site().lang, lowerNs )
***************
*** 262,265 ****
--- 263,267 ----
t = m.group(2)
self._namespace = ns
+ break
elif lowerNs in self.site().family.alphabetic:
# Interwiki link
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
pyWikipediaBot-users mailing list
pyWikipediaBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pywikipediabot-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic