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 addsitedir function [3].

[1] http://hg.python.org/cpython/file/fb17969ace93/Lib/site.py#l149
[2] http://hg.python.org/cpython/annotate/ac13a6ce13e2/Lib/site.py#l102
[3] http://hg.python.org/cpython/file/fb17969ace93/Lib/site.py#l189

----------
components: Library (Lib)
files: patch.diff
keywords: patch
messages: 180022
nosy: x746e
priority: normal
severity: normal
status: open
title: Useless function call in site.py
type: enhancement
Added file: http://bugs.python.org/file28740/patch.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16972>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to