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:
Brett Cannon 2004-07-09 23:38:18 +00:00
parent 37b0c1dbf4
commit 12f8c4d2e3
1 changed files with 1 additions and 1 deletions

View File

@ -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: