[pypy-commit] pypy py3.5: The `U` mode is deprecated on Python 3; use r instead.
exarkun
pypy.commits at gmail.com
Fri Aug 18 11:31:16 EDT 2017
Author: Jean-Paul Calderone <exarkun at twistedmatrix.com>
Branch: py3.5
Changeset: r92168:6ee00ca3924e
Date: 2017-08-18 11:30 -0400
http://bitbucket.org/pypy/pypy/changeset/6ee00ca3924e/
Log: The `U` mode is deprecated on Python 3; use r instead.
diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py
--- a/pypy/module/imp/test/test_app.py
+++ b/pypy/module/imp/test/test_app.py
@@ -83,7 +83,7 @@
for suffix, mode, type in imp.get_suffixes():
if type == imp.PY_SOURCE:
assert suffix == '.py'
- assert mode == 'U'
+ assert mode == 'r'
elif type == imp.PY_COMPILED:
assert suffix in ('.pyc', '.pyo')
assert mode == 'rb'
More information about the pypy-commit
mailing list