[issue29326] Blank lines in ._pth file are not ignored

Steve Dower report at bugs.python.org
Thu Jan 19 11:54:32 EST 2017


New submission from Steve Dower:

If a python._pth file includes a blank line, it gets treated as '\n' which is then appended to the directory and used as an entry in sys.path.

Empty lines should be ignored completely.

----------
components: Windows
messages: 285809
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: low
severity: normal
stage: needs patch
status: open
title: Blank lines in ._pth file are not ignored
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29326>
_______________________________________


More information about the Python-bugs-list mailing list