summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-07-09 23:38:18 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-07-09 23:38:18 (GMT)
commit12f8c4d2e3edf2717869c7578616f188ecd2daed (patch)
treebb597bedfa8990219af3c81af88e745863418a09 /Lib/site.py
parent37b0c1dbf4c6c31e4db11c139971e999679ef276 (diff)
downloadcpython-12f8c4d2e3edf2717869c7578616f188ecd2daed.zip
cpython-12f8c4d2e3edf2717869c7578616f188ecd2daed.tar.gz
cpython-12f8c4d2e3edf2717869c7578616f188ecd2daed.tar.bz2
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).
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index a5fce06..241068c 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -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: