[issue16972] Useless function call in site.py

2013-01-25 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the bug report, Kirill! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue16972] Useless function call in site.py

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c0197c95ec6 by Brett Cannon in branch 'default': Issue #16972: Have site.addpackage() consider known paths even when http://hg.python.org/cpython/rev/2c0197c95ec6 -- nosy: +python-dev ___ Python tracker

[issue16972] Useless function call in site.py

2013-01-18 Thread Brett Cannon
Brett Cannon added the comment: I suspect Kirill is right, although the function that calls addpackage() in site.py always passes in a value, so it won't change anything for Python itself, only third-party code. And addpackage() has been that way since 2004. But, in looking at the function its

[issue16972] Useless function call in site.py

2013-01-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16972] Useless function call in site.py

2013-01-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16972] Useless function call in site.py

2013-01-15 Thread Kirill
New submission from Kirill: In Lib/site.py:149 [1] _init_pathinfo call has no effect. Looks like it's here because in the past _init_pathinfo was changing a global variable [2]. I believe that it should be changed to `known_paths = _init_pathinfo()`, in the same way as it's done in addsitedi