Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2bb6eb3f
Kaydet (Commit)
2bb6eb3f
authored
May 25, 2017
tarafından
Stéphane Wirtel
Kaydeden (comit)
Mariatta
May 25, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[2.7] Indent methods and attributes of MimeType class (GH-1306) (#1801)
üst
bdd96471
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mimetypes.rst
Doc/library/mimetypes.rst
+10
-10
No files found.
Doc/library/mimetypes.rst
Dosyayı görüntüle @
2bb6eb3f
...
...
@@ -186,7 +186,7 @@ than one MIME-type database; it provides an interface similar to the one of the
loaded "on top" of the default database.
.. attribute:: MimeTypes.suffix_map
.. attribute:: MimeTypes.suffix_map
Dictionary mapping suffixes to suffixes. This is used to allow recognition of
encoded files for which the encoding and the type are indicated by the same
...
...
@@ -195,13 +195,13 @@ than one MIME-type database; it provides an interface similar to the one of the
copy of the global :data:`suffix_map` defined in the module.
.. attribute:: MimeTypes.encodings_map
.. attribute:: MimeTypes.encodings_map
Dictionary mapping filename extensions to encoding types. This is initially a
copy of the global :data:`encodings_map` defined in the module.
.. attribute:: MimeTypes.types_map
.. attribute:: MimeTypes.types_map
Tuple containing two dictionaries, mapping filename extensions to MIME types:
the first dictionary is for the non-standards types and the second one is for
...
...
@@ -209,7 +209,7 @@ than one MIME-type database; it provides an interface similar to the one of the
:data:`types_map`.
.. attribute:: MimeTypes.types_map_inv
.. attribute:: MimeTypes.types_map_inv
Tuple containing two dictionaries, mapping MIME types to a list of filename
extensions: the first dictionary is for the non-standards types and the
...
...
@@ -217,25 +217,25 @@ than one MIME-type database; it provides an interface similar to the one of the
:data:`common_types` and :data:`types_map`.
.. method:: MimeTypes.guess_extension(type, strict=True)
.. method:: MimeTypes.guess_extension(type, strict=True)
Similar to the :func:`guess_extension` function, using the tables stored as part
of the object.
.. method:: MimeTypes.guess_type(url, strict=True)
.. method:: MimeTypes.guess_type(url, strict=True)
Similar to the :func:`guess_type` function, using the tables stored as part of
the object.
.. method:: MimeTypes.guess_all_extensions(type, strict=True)
.. method:: MimeTypes.guess_all_extensions(type, strict=True)
Similar to the :func:`guess_all_extensions` function, using the tables stored
as part of the object.
.. method:: MimeTypes.read(filename, strict=True)
.. method:: MimeTypes.read(filename, strict=True)
Load MIME information from a file named *filename*. This uses :meth:`readfp` to
parse the file.
...
...
@@ -244,7 +244,7 @@ than one MIME-type database; it provides an interface similar to the one of the
else to the list of non-standard types.
.. method:: MimeTypes.readfp(fp, strict=True)
.. method:: MimeTypes.readfp(fp, strict=True)
Load MIME type information from an open file *fp*. The file must have the format of
the standard :file:`mime.types` files.
...
...
@@ -253,7 +253,7 @@ than one MIME-type database; it provides an interface similar to the one of the
types, else to the list of non-standard types.
.. method:: MimeTypes.read_windows_registry(strict=True)
.. method:: MimeTypes.read_windows_registry(strict=True)
Load MIME type information from the Windows registry. Availability: Windows.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment