[pypy-svn] r41316 - pypy/dist/lib-python/modified-2.4.1
antocuni at codespeak.net
antocuni at codespeak.net
Mon Mar 26 11:50:40 CEST 2007
Author: antocuni
Date: Mon Mar 26 11:50:40 2007
New Revision: 41316
Modified:
pypy/dist/lib-python/modified-2.4.1/site.py
Log:
(antocuni, xoraxax)
Work-around a not well specified CPython behaviour and make py.py starting on windows
Modified: pypy/dist/lib-python/modified-2.4.1/site.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/site.py (original)
+++ pypy/dist/lib-python/modified-2.4.1/site.py Mon Mar 26 11:50:40 2007
@@ -349,7 +349,7 @@
if sys.platform == 'win32':
import locale, codecs
enc = locale.getdefaultlocale()[1]
- if enc.startswith('cp'): # "cp***" ?
+ if enc is not None and enc.startswith('cp'): # "cp***" ?
try:
codecs.lookup(enc)
except LookupError:
More information about the Pypy-commit
mailing list