]> granicus.if.org Git - python/commitdiff
fixed a typo in a docstring, and slightly expanded the module
authorBarry Warsaw <barry@python.org>
Tue, 12 Oct 1999 16:12:48 +0000 (16:12 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 12 Oct 1999 16:12:48 +0000 (16:12 +0000)
docstring info for readfp().

Lib/ConfigParser.py

index 03f4c6b82fe56c6a2634b08fedbdaafef607d8a0..f0611f687996abd7d9abc37d291e1d68a9503e1f 100644 (file)
@@ -50,7 +50,7 @@ ConfigParser -- responsible for for parsing a list of
     readfp(fp, filename=None)
         read and parse one configuration file, given as a file object.
         The filename defaults to fp.name; it is only used in error
-        messages.
+        messages (if fp has no `name' attribute, the string `<???>' is used).
 
     get(section, option, raw=0, vars=None)
         return a string value for the named option.  All % interpolations are
@@ -188,11 +188,10 @@ class ConfigParser:
         return opts.has_key(option)
 
     def read(self, filenames):
-
         """Read and parse a filename or a list of filenames.
         
         Files that cannot be opened are silently ignored; this is
-        designed so that you can specifiy a list of potential
+        designed so that you can specify a list of potential
         configuration file locations (e.g. current directory, user's
         home directory, systemwide directory), and all existing
         configuration files in the list will be read.  A single