File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,12 +116,13 @@ behavior of the module.
116116 Previously, Windows registry settings were ignored.
117117
118118
119- .. function :: read_mime_types(filename )
119+ .. function :: read_mime_types(file )
120120
121- Load the type map given in the file *filename *, if it exists. The type map is
122- returned as a dictionary mapping filename extensions, including the leading dot
123- (``'.' ``), to strings of the form ``'type/subtype' ``. If the file *filename *
124- does not exist or cannot be read, ``None `` is returned.
121+ Load the type map given in the file named by *file *, if it exists. *file *
122+ must be a string specifying the name of the file to read. The type map is
123+ returned as a dictionary mapping file extensions, including the leading dot
124+ (``'.' ``), to strings of the form ``'type/subtype' ``. If the file does not
125+ exist or cannot be read, ``None `` is returned.
125126
126127
127128.. function :: add_type(type, ext, strict=True)
You can’t perform that action at this time.
0 commit comments