Revision: 8687
Author: valhallasw
Date: 2010-10-27 21:16:01 +0000 (Wed, 27 Oct 2010)
Log Message:
-----------
[#3081100] Added warning for affected python versions. This does NOT fix the bug, this merely warns users of affected versions.
https://sourceforge.net/tracker/index.php?func=detail&aid=3081100&group_id=…
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
==============================================================…
[View More]=====
--- trunk/pywikipedia/interwiki.py 2010-10-24 21:40:00 UTC (rev 8686)
+++ trunk/pywikipedia/interwiki.py 2010-10-27 21:16:01 UTC (rev 8687)
@@ -2564,6 +2564,17 @@
globalvar=Global()
if __name__ == "__main__":
+ # TEST for bug #3081100
+ if not __import__('unicodedata').normalize('NFC', u'\u092e\u093e\u0930\u094d\u0915 \u091c\u093c\u0941\u0915\u0947\u0930\u092c\u0930\u094d\u0917') == u'\u092e\u093e\u0930\u094d\u0915 \u091c\u093c\u0941\u0915\u0947\u0930\u092c\u0930\u094d\u0917':
+ pywikibot.output("""
+
+================================================================================
+\03{lightyellow}WARNING:\03{lightred} your python version might trigger issue #3081100\03{default}
+See https://sourceforge.net/tracker/index.php?func=detail&aid=3081100&group_id=… for more information.
+\03{lightyellow}Use an older python version (<2.6.5) if you are running on wikimedia sites!\03{default}
+================================================================================
+
+""")
try:
main()
finally:
[View Less]