<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/eventlet.git/tests/os_test.py, branch codecov</title>
<subtitle>github.com: eventlet/eventlet.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/'/>
<entry>
<title>workaround for pathlib on py 3.7</title>
<updated>2019-08-20T08:13:58+00:00</updated>
<author>
<name>David Szotten</name>
<email>davidszotten@gmail.com</email>
</author>
<published>2019-08-19T20:14:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=ca8dd0748a1985a409e9a9a517690f46e05cae99'/>
<id>ca8dd0748a1985a409e9a9a517690f46e05cae99</id>
<content type='text'>
fixes #534

pathlib._NormalAccessor wraps `open` in `staticmethod` for py &lt; 3.7 but
not 3.7. That means we `Path.open` calls `green.os.open` with `file`
being a pathlib._NormalAccessor object, and the other arguments shifted.
Fortunately pathlib doesn't use the `dir_fd` argument, so we have space
in the parameter list. We use some heuristics to detect this and adjust
the parameters (without importing pathlib)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes #534

pathlib._NormalAccessor wraps `open` in `staticmethod` for py &lt; 3.7 but
not 3.7. That means we `Path.open` calls `green.os.open` with `file`
being a pathlib._NormalAccessor object, and the other arguments shifted.
Fortunately pathlib doesn't use the `dir_fd` argument, so we have space
in the parameter list. We use some heuristics to detect this and adjust
the parameters (without importing pathlib)
</pre>
</div>
</content>
</entry>
</feed>
