From: Georg Brandl Date: Sat, 19 May 2007 18:09:26 +0000 (+0000) Subject: Fix docstring for add_package in site.py. X-Git-Tag: v2.6a1~1724 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d76cca0265aaa23d2a59af3bfb1bcd133c0a59d;p=thirdparty%2FPython%2Fcpython.git Fix docstring for add_package in site.py. --- diff --git a/Lib/site.py b/Lib/site.py index 5033f8abcd93..06185502481f 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -118,8 +118,10 @@ def _init_pathinfo(): return d def addpackage(sitedir, name, known_paths): - """Add a new path to known_paths by combining sitedir and 'name' or execute - sitedir if it starts with 'import'""" + """Process a .pth file within the site-packages directory: + For each line in the file, either combine it with sitedir to a path + and add that to known_paths, or execute it if it starts with 'import '. + """ if known_paths is None: _init_pathinfo() reset = 1