Staging
v0.5.1
https://github.com/python/cpython
Revision 36f7e938f287adb4a5c00bb66c5479357dfa9c26 authored by Tim Peters on 23 July 2003, 00:05:07 UTC, committed by Tim Peters on 23 July 2003, 00:05:07 UTC
Obtain the original locale in the documented way.  This way actually
works for me.

Restore the original locale at the end, instead of forcing to "C".

Move the locale fiddling into the test driver instead of doing it as a
side effect of merely importing the module.  I don't know why the test
is mucking with locale (and also added a comment saying so), but it
surely has no justification for doing that as an import side-effect.
Now whenever the locale-changing code executes, the locale-restoring code
will also get run.
1 parent d1deac0
History
Tip revision: 36f7e938f287adb4a5c00bb66c5479357dfa9c26 authored by Tim Peters on 23 July 2003, 00:05:07 UTC
Fred wasn't kidding -- there really are docs for the locale module <wink>.
Tip revision: 36f7e93
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.2 KB
LICENSE -rw-r--r-- 12.6 KB
Makefile.pre.in -rw-r--r-- 31.0 KB
README -rw-r--r-- 47.8 KB
configure -rwxr-xr-x 490.9 KB
configure.in -rw-r--r-- 80.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 24.4 KB
setup.py -rw-r--r-- 49.9 KB

README

back to top