[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-09-19 Thread Tal Einat
Tal Einat added the comment: Thanks for bringing this up again Malcolm, for the original Patch Ammar, and for the work on the PR Ido! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.6 ___

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-09-19 Thread Tal Einat
Tal Einat added the comment: New changeset 0c71a66b53f6ea262aa5a60784c8c625ae0bb98c by idomic in branch 'master': bpo-33689: Blank lines in .pth file cause a duplicate sys.path entry (GH-20679) https://github.com/python/cpython/commit/0c71a66b53f6ea262aa5a60784c8c625ae0bb98c -- ___

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-09-19 Thread Tal Einat
Tal Einat added the comment: This is certainly a bug fix, but since it may break backwards-compatibility in delicate ways, I'm not going to backport it to earlier versions. Expect this to land in 3.10. -- ___ Python tracker

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-06-06 Thread Ido Michael
Ido Michael added the comment: Created a PR: GH-20679 I did see some of the changes are already in the code for example, test_underpth_nosite_file.test_sity.py already had pth_lines filter out: ''. I think it's because this issue relevant only for 3.6? Or maybe this issue was solved already

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-06-06 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +19893 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20679 ___ Python tracker ___

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-06-06 Thread Ido Michael
Change by Ido Michael : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-03-15 Thread Ido Michael
Ido Michael added the comment: I can take this and have a PR -- nosy: +Ido Michael ___ Python tracker ___ ___ Python-bugs-list mail

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2020-03-14 Thread Malcolm Smith
Malcolm Smith added the comment: It's definitely a bug and not a documentation lapse. There's no reason why blank lines should have that effect, and no indication in the code that this was intentional. -- ___ Python tracker

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2018-05-30 Thread Ammar Askar
Ammar Askar added the comment: If this is actually an issue, and not just a documentation lapse I can create a pull request from my original patch. -- nosy: +ammar2 ___ Python tracker __

[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2018-05-29 Thread Malcolm Smith
New submission from Malcolm Smith : The `site` module documentation says that in .pth files, "Blank lines and lines beginning with # are skipped.". However, the implementation does not actually skip blank lines. It then joins the empty string to the site-packages directory, resulting in the s