[Python-checkins] r55455 - python/trunk/Lib/site.py

georg.brandl python-checkins at python.org
Sat May 19 20:09:31 CEST 2007


Author: georg.brandl
Date: Sat May 19 20:09:26 2007
New Revision: 55455

Modified:
   python/trunk/Lib/site.py
Log:
Fix docstring for add_package in site.py.


Modified: python/trunk/Lib/site.py
==============================================================================
--- python/trunk/Lib/site.py	(original)
+++ python/trunk/Lib/site.py	Sat May 19 20:09:26 2007
@@ -118,8 +118,10 @@
     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


More information about the Python-checkins mailing list