summaryrefslogtreecommitdiff
path: root/readers/python
diff options
context:
space:
mode:
authororutherfurd <orutherfurd@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-03-28 15:39:27 +0000
committerorutherfurd <orutherfurd@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-03-28 15:39:27 +0000
commitc31e9ed98aee2b9e4d8a1d89c7b47ae1d1f8e088 (patch)
tree387f41cc90ef01510b03b383b2225cb035e40ca6 /readers/python
parenta6fb4ae613e83c9c0a3f3050351adbba6579436b (diff)
downloaddocutils-c31e9ed98aee2b9e4d8a1d89c7b47ae1d1f8e088.tar.gz
moved locale imports into try blocks, for Jython compatibility
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils/docutils@1896 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'readers/python')
-rw-r--r--readers/python/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/readers/python/__init__.py b/readers/python/__init__.py
index 0da4ba938..1bd9b151c 100644
--- a/readers/python/__init__.py
+++ b/readers/python/__init__.py
@@ -111,8 +111,8 @@ class DocstringFormattingVisitor(nodes.SparseNodeVisitor):
return self.default_parser
if __name__ == '__main__':
- import locale
try:
+ import locale
locale.setlocale(locale.LC_ALL, '')
except:
pass