mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Change argument list for addsitedir() to not require a second argument and thus
match old verion's argument list (overlooked since API of the file is undocumented).
This commit is contained in:
parent
37b0c1dbf4
commit
12f8c4d2e3
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ def addpackage(sitedir, name, known_paths):
|
||||||
known_paths = None
|
known_paths = None
|
||||||
return known_paths
|
return known_paths
|
||||||
|
|
||||||
def addsitedir(sitedir, known_paths):
|
def addsitedir(sitedir, known_paths=None):
|
||||||
"""Add 'sitedir' argument to sys.path if missing and handle .pth files in
|
"""Add 'sitedir' argument to sys.path if missing and handle .pth files in
|
||||||
'sitedir'"""
|
'sitedir'"""
|
||||||
if known_paths is None:
|
if known_paths is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue