From: David G. <go...@us...> - 2002-09-20 02:48:56
|
Update of /cvsroot/docutils/docutils/tools In directory usw-pr-cvs1:/tmp/cvs-serv20365/docutils/tools Modified Files: publish.py Log Message: Made the ``locale.setlocale()`` calls in front ends fault-tolerant. Index: publish.py =================================================================== RCS file: /cvsroot/docutils/docutils/tools/publish.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- publish.py 25 Jul 2002 01:55:34 -0000 1.6 +++ publish.py 20 Sep 2002 02:48:53 -0000 1.7 @@ -1,17 +1,20 @@ #!/usr/bin/env python -""" -:Author: David Goodger -:Contact: go...@us... -:Revision: $Revision$ -:Date: $Date$ -:Copyright: This module has been placed in the public domain. +# Author: David Goodger +# Contact: go...@us... +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. +""" A minimal front end to the Docutils Publisher, producing pseudo-XML. """ import locale -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass from docutils.core import publish, default_description |