D | mimetypes.py | 72 def __init__(self, filenames=(), strict=True): argument 84 self.read(name, strict) 86 def add_type(self, type, ext, strict=True): argument 98 self.types_map[strict][ext] = type 99 exts = self.types_map_inv[strict].setdefault(type, []) 103 def guess_type(self, url, strict=True): argument 156 elif strict: 166 def guess_all_extensions(self, type, strict=True): argument 179 if not strict: 185 def guess_extension(self, type, strict=True): argument [all …]
|