[New-bugs-announce] [issue16972] Useless function call in site.py

Kirill report at bugs.python.org
Tue Jan 15 16:19:18 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue16972>
_______________________________________


More information about the New-bugs-announce mailing list