janssenhenning · GitHub

added 3 commits

January 27, 2022 22:26
Added `_isStringOrPathLike` typecheck which checks for the existence
of `__fspath__` for python 3.6+. `_encodeFilename` in apihelpers uses
`os.fspath` to resolve thes paths
`iterparse` already allowed it, but a test is added.
_ElementTree.write_c14n

scoder

instead of checking for __fspath__ multiple times a cython function
_getFSPathOrObject is added which calls the __fspath__ attribute if
it exists
For python 3.6+ this function uses PyOS_FSPath

@janssenhenning

scoder

Co-authored-by: scoder <stefan_ml@behnel.de>

Closed

@scoder

@janssenhenning

janssenhenning added a commit to JuDFTteam/masci-tools that referenced this pull request

Feb 17, 2022
for all of the API
lxml/lxml#337
This allows to eliminate some corner cases in the fleur parser

janssenhenning added a commit to JuDFTteam/masci-tools that referenced this pull request

Feb 23, 2022
for all of the API
lxml/lxml#337
This allows to eliminate some corner cases in the fleur parser

janssenhenning added a commit to JuDFTteam/masci-tools that referenced this pull request

Feb 25, 2022
for all of the API
lxml/lxml#337
This allows to eliminate some corner cases in the fleur parser

Merged

Closed

Read the original on github.com ↗