[Pywikipedia-l] SVN: [6106] trunk/pywikipedia/category_redirect.py
russblau at svn.wikimedia.org
russblau at svn.wikimedia.org
Tue Nov 18 15:31:10 UTC 2008
Revision: 6106
Author: russblau
Date: 2008-11-18 15:31:10 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
bugfix: locale (oddly) won't accept Unicode args
Modified Paths:
--------------
trunk/pywikipedia/category_redirect.py
Modified: trunk/pywikipedia/category_redirect.py
===================================================================
--- trunk/pywikipedia/category_redirect.py 2008-11-17 20:18:33 UTC (rev 6105)
+++ trunk/pywikipedia/category_redirect.py 2008-11-18 15:31:10 UTC (rev 6106)
@@ -346,7 +346,7 @@
lang = self.date_locale[self.site.family.name][self.site.lang]
except KeyError:
lang = self.site.lang
- locale.setlocale(locale.LC_TIME, lang)
+ locale.setlocale(locale.LC_TIME, str(lang))
if line.startswith("==") and line.endswith("=="):
header = datetime.strptime(
line[2:-2].strip(),
More information about the Pywikipedia-l
mailing list