[pypy-svn] r69901 - pypy/trunk/pypy/module/_locale

afa at codespeak.net afa at codespeak.net
Fri Dec 4 18:39:43 CET 2009


Author: afa
Date: Fri Dec  4 18:39:41 2009
New Revision: 69901

Modified:
   pypy/trunk/pypy/module/_locale/__init__.py
   pypy/trunk/pypy/module/_locale/interp_locale.py
Log:
darwin is a Unix platform, unlike the older 'apple'.
no need for a specific getdefaultlocale()


Modified: pypy/trunk/pypy/module/_locale/__init__.py
==============================================================================
--- pypy/trunk/pypy/module/_locale/__init__.py	(original)
+++ pypy/trunk/pypy/module/_locale/__init__.py	Fri Dec  4 18:39:41 2009
@@ -12,7 +12,7 @@
             'strxfrm':                  'interp_locale.strxfrm',
             }
 
-    if sys.platform in ('win32', 'darwin'):
+    if sys.platform == 'win32':
         interpleveldefs.update({
             '_getdefaultlocale':        'interp_locale.getdefaultlocale',
             })

Modified: pypy/trunk/pypy/module/_locale/interp_locale.py
==============================================================================
--- pypy/trunk/pypy/module/_locale/interp_locale.py	(original)
+++ pypy/trunk/pypy/module/_locale/interp_locale.py	Fri Dec  4 18:39:41 2009
@@ -462,5 +462,3 @@
         finally:
             lltype.free(buf_lang, flavor='raw')
             lltype.free(buf_country, flavor='raw')
-elif sys.platform == 'darwin':
-    raise NotImplementedError()



More information about the Pypy-commit mailing list