mirror of https://github.com/python/cpython
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
|
@ -145,7 +145,7 @@ def addpackage(sitedir, name, known_paths):
|
|||
known_paths = None
|
||||
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
|
||||
'sitedir'"""
|
||||
if known_paths is None:
|
||||
|
|
Loading…
Reference in New Issue