Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r94946:71093bf7b39c
Date: 2018-08-04 23:51 -0700
http://bitbucket.org/pypy/pypy/changeset/71093bf7b39c/

Log:    remove str_w

diff --git a/pypy/module/_locale/test/test_locale.py 
b/pypy/module/_locale/test/test_locale.py
--- a/pypy/module/_locale/test/test_locale.py
+++ b/pypy/module/_locale/test/test_locale.py
@@ -25,21 +25,21 @@
                 # some systems are only UTF-8 oriented
                 try:
                     _locale.setlocale(_locale.LC_ALL,
-                                      cls.space.str_w(cls.w_language_en))
+                                      cls.space.utf8_w(cls.w_language_en))
                 except _locale.Error:
                     _locale.setlocale(_locale.LC_ALL,
-                                      cls.space.str_w(cls.w_language_utf8))
+                                      cls.space.utf8_w(cls.w_language_utf8))
                     cls.w_language_en = cls.w_language_utf8
 
                 _locale.setlocale(_locale.LC_ALL,
-                                  cls.space.str_w(cls.w_language_pl))
+                                  cls.space.utf8_w(cls.w_language_pl))
             except _locale.Error:
                 py.test.skip("necessary locales not installed")
 
             # Windows forbids the UTF-8 character set since Windows XP.
             try:
                 _locale.setlocale(_locale.LC_ALL,
-                                  cls.space.str_w(cls.w_language_utf8))
+                                  cls.space.utf8_w(cls.w_language_utf8))
             except _locale.Error:
                 del cls.w_language_utf8
         finally:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to