diff options
Diffstat (limited to 'pypy/module/_locale/interp_locale.py')
-rw-r--r-- | pypy/module/_locale/interp_locale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pypy/module/_locale/interp_locale.py b/pypy/module/_locale/interp_locale.py index b864d480a6..bf2bbbec33 100644 --- a/pypy/module/_locale/interp_locale.py +++ b/pypy/module/_locale/interp_locale.py @@ -48,7 +48,7 @@ def _fixup_ulcase(space): def setlocale(space, category, w_locale=None): "(integer,string=None) -> string. Activates/queries locale processing." - if w_locale is None or space.is_w(w_locale, space.w_None): + if space.is_none(w_locale): locale = None else: locale = space.str_w(w_locale) |