|
From: <mi...@us...> - 2017-06-22 20:59:22
|
Revision: 8119
http://sourceforge.net/p/docutils/code/8119
Author: milde
Date: 2017-06-22 20:59:19 +0000 (Thu, 22 Jun 2017)
Log Message:
-----------
Fix [ 321 ] Import block might cause name error.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/utils/error_reporting.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2017-06-22 20:25:22 UTC (rev 8118)
+++ trunk/docutils/HISTORY.txt 2017-06-22 20:59:19 UTC (rev 8119)
@@ -66,6 +66,10 @@
- Added ``split_escaped_whitespace`` function, support for escaped
whitespace in URI contexts.
+* docutils/utils/error_reporting.py
+
+ - Fix [ 321 ] Import block might cause name error.
+
* docutils/utils/smartquotes.py:
- Update quote definitions for languages et, fi, fr, ro, sv, tr, uk.
Modified: trunk/docutils/docutils/utils/error_reporting.py
===================================================================
--- trunk/docutils/docutils/utils/error_reporting.py 2017-06-22 20:25:22 UTC (rev 8118)
+++ trunk/docutils/docutils/utils/error_reporting.py 2017-06-22 20:59:19 UTC (rev 8119)
@@ -54,6 +54,8 @@
# and https://sourceforge.net/p/docutils/bugs/298/
if "unknown locale: UTF-8" in error.args:
locale_encoding = "UTF-8"
+ else:
+ locale_encoding = None
except: # any other problems determining the locale -> use None
locale_encoding = None
try:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|