Skip to content
Myr

Merge pull request #375 from zart/fix-relative-search-on-windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Windows returns EINVAL on bogus filenames

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents d97db3f, 0b74a4f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/utils.py+1 added-1 removed
148 unmodified lines
149 """150 try:151 return open(filename, mode)152 except IOError as e:153 if e.errno not in (errno.ENOENT, errno.EISDIR):153 if e.errno not in (errno.ENOENT, errno.EISDIR, errno.EINVAL):154 raise155156157def object_type_repr(obj):
370 unmodified lines