[Python-checkins] r65039 - python/trunk/Lib/CGIHTTPServer.py

georg.brandl python-checkins at python.org
Thu Jul 17 00:09:17 CEST 2008


Author: georg.brandl
Date: Thu Jul 17 00:09:17 2008
New Revision: 65039
Log:
#3345: fix docstring.
Modified:
 python/trunk/Lib/CGIHTTPServer.py
Modified: python/trunk/Lib/CGIHTTPServer.py
==============================================================================
--- python/trunk/Lib/CGIHTTPServer.py	(original)
+++ python/trunk/Lib/CGIHTTPServer.py	Thu Jul 17 00:09:17 2008
@@ -70,17 +70,18 @@
 return SimpleHTTPServer.SimpleHTTPRequestHandler.send_head(self)
 
 def is_cgi(self):
- """Test whether self.path corresponds to a CGI script.
+ """Test whether self.path corresponds to a CGI script,
+ and return a boolean.
 
- Return a tuple (dir, rest) if self.path requires running a
- CGI script, None if not. Note that rest begins with a
+ This function sets self.cgi_info to a tuple (dir, rest)
+ when it returns True, where dir is the directory part before
+ the CGI script name. Note that rest begins with a
 slash if it is not empty.
 
 The default implementation tests whether the path
 begins with one of the strings in the list
 self.cgi_directories (and the next character is a '/'
 or the end of the string).
-
 """
 
 path = self.path


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /