From: David G. <go...@us...> - 2002-09-20 02:49:04
|
Update of /cvsroot/docutils/docutils/tools In directory usw-pr-cvs1:/tmp/cvs-serv20390/docutils/tools Modified Files: quicktest.py Log Message: Made the ``locale.setlocale()`` calls in front ends fault-tolerant. Index: quicktest.py =================================================================== RCS file: /cvsroot/docutils/docutils/tools/quicktest.py,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- quicktest.py 19 Sep 2002 00:51:03 -0000 1.8 +++ quicktest.py 20 Sep 2002 02:49:01 -0000 1.9 @@ -9,7 +9,10 @@ # Copyright: This module has been placed in the public domain. import locale -locale.setlocale(locale.LC_ALL, '') +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass import sys import os |