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

getxsick at codespeak.net getxsick at codespeak.net
Fri Feb 13 20:57:27 CET 2009


Author: getxsick
Date: Fri Feb 13 20:57:27 2009
New Revision: 61851

Modified:
   pypy/trunk/pypy/module/_locale/interp_locale.py
Log:
(jlg, getxsick) docstrings for setlocale() aka yet another forgotten thing

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 Feb 13 20:57:27 2009
@@ -102,12 +102,12 @@
 _setlocale = external('setlocale', [rffi.INT, rffi.CCHARP], rffi.CCHARP)
 
 def setlocale(space, category, w_locale=None):
-    if space.is_w(w_locale, space.w_None) or w_locale is None:
+    "(integer,string=None) -> string. Activates/queries locale processing."
 
+    if space.is_w(w_locale, space.w_None) or w_locale is None:
         result = _setlocale(rffi.cast(rffi.INT, category), None)
         if not result:
             raise make_error(space, "locale query failed")
-
     else:
         locale = rffi.str2charp(space.str_w(w_locale))
 



More information about the Pypy-commit mailing list