]> granicus.if.org Git - python/commit
Stop binding sys.path as default parameter value in packaging.
authorÉric Araujo <merwok@netwok.org>
Thu, 16 Jun 2011 21:43:15 +0000 (23:43 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 16 Jun 2011 21:43:15 +0000 (23:43 +0200)
commit6f67765389f63b49c094ee08017309bcb45d7ed6
treeaf25aaec48f44dfb11bac27c5919e6884f7249d3
parentb6be20ca337348b7cf2b356f9354a4121627add0
Stop binding sys.path as default parameter value in packaging.

The two public functions in database default to sys.path if the given
*paths* argument is None; the private functions don’t have default
values for their arguments anymore, which is fine as the public
functions that call them pass their arguments down.  Likewise in
install, the functions will pass down their *paths* arguments down to
database functions.

A one-line unneeded function in install was removed instead of being
changed, and the few remaining tests that used brute-force restoration
of sys.path have been cleaned up to use sys.path.remove.
Lib/packaging/database.py
Lib/packaging/install.py
Lib/packaging/tests/test_command_build_ext.py
Lib/packaging/tests/test_database.py