Revision: 6213
Author: btongminh
Date: 2008-12-28 18:33:09 +0000 (Sun, 28 Dec 2008)
Log Message:
-----------
Hardcoding namespace names kinda sucks. Still, change Image: to File:
Modified Paths:
--------------
trunk/pywikipedia/commonsdelinker/image_replacer.py
Modified: trunk/pywikipedia/commonsdelinker/image_replacer.py
===================================================================
--- trunk/pywikipedia/commonsdelinker/image_replacer.py 2008-12-27 17:55:58 UTC (rev
6212)
+++ trunk/pywikipedia/commonsdelinker/image_replacer.py 2008-12-28 18:33:09 UTC (rev
6213)
@@ -23,7 +23,7 @@
DB_TS = re.compile('[^0-9]')
def db_timestamp(ts):
return DB_TS.sub('', ts)
-IMG_NS = re.compile(r'(?i)^\s*Image\:')
+IMG_NS = re.compile(r'(?i)^\s*File\:')
def strip_image(img):
img = IMG_NS.sub('', img)
img = img.replace(' ', '_')
Show replies by thread