Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r90199:fea26f231a97
Date: 2017-02-19 16:00 +0100
http://bitbucket.org/pypy/pypy/changeset/fea26f231a97/
Log: fix test_surrogate_in_filename
diff --git a/pypy/module/_warnings/interp_warnings.py
b/pypy/module/_warnings/interp_warnings.py
--- a/pypy/module/_warnings/interp_warnings.py
+++ b/pypy/module/_warnings/interp_warnings.py
@@ -226,7 +226,7 @@
return False
def normalize_module(space, w_filename):
- filename = space.identifier_w(w_filename)
+ filename = space.text_w(w_filename)
if len(filename) == 0:
return space.newtext("<unknown>")
if filename.endswith(".py"):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit