[pypy-commit] pypy py3.6: make sure error messages get the original argument
cfbolz
pypy.commits at gmail.com
Mon May 21 16:16:57 EDT 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r94649:d8ae94b9e568
Date: 2018-05-21 22:11 +0200
http://bitbucket.org/pypy/pypy/changeset/d8ae94b9e568/
Log: make sure error messages get the original argument
diff --git a/pypy/module/_io/interp_fileio.py b/pypy/module/_io/interp_fileio.py
--- a/pypy/module/_io/interp_fileio.py
+++ b/pypy/module/_io/interp_fileio.py
@@ -186,11 +186,11 @@
if space.is_none(w_opener):
from pypy.module.posix.interp_posix import dispatch_filename, fspath
- w_name = fspath(space, w_name)
+ w_path = fspath(space, w_name)
while True:
try:
self.fd = dispatch_filename(rposix.open)(
- space, w_name, flags, 0666)
+ space, w_path, flags, 0666)
fd_is_own = True
break
except OSError as e:
More information about the pypy-commit
mailing list