Skip to content
Myr

Windows returns EINVAL on bogus filenames

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

Related pull of pyramid_jinja2: https://github.com/Pylons/pyramid_jinja2/pull/94

authored by Konstantin Zemlyak · committed by Konstantin Zemlyak · parent 85820fc · 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