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
8227045b
Kaydet (Commit)
8227045b
authored
Eki 15, 2010
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix sphinx role markups.
üst
46a48bef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
examples.rst
Doc/distutils/examples.rst
+5
-5
uploading.rst
Doc/distutils/uploading.rst
+6
-5
email.message.rst
Doc/library/email.message.rst
+5
-4
3.2.rst
Doc/whatsnew/3.2.rst
+2
-2
No files found.
Doc/distutils/examples.rst
Dosyayı görüntüle @
8227045b
...
@@ -257,10 +257,9 @@ Running the ``check`` command will display some warnings::
...
@@ -257,10 +257,9 @@ Running the ``check`` command will display some warnings::
(maintainer and maintainer_email) must be supplied
(maintainer and maintainer_email) must be supplied
If you use the reStructuredText syntax in the `long_description` field and
If you use the reStructuredText syntax in the ``long_description`` field and
`docutils <http://docutils.sourceforge.net/>`_ is installed you can check if
`docutils`_ is installed you can check if the syntax is fine with the
the syntax is fine with the ``check`` command, using the `restructuredtext`
``check`` command, using the ``restructuredtext`` option.
option.
For example, if the :file:`setup.py` script is changed like this::
For example, if the :file:`setup.py` script is changed like this::
...
@@ -278,7 +277,7 @@ For example, if the :file:`setup.py` script is changed like this::
...
@@ -278,7 +277,7 @@ For example, if the :file:`setup.py` script is changed like this::
url='
http
://
example
.
com
', long_description=desc)
url='
http
://
example
.
com
', long_description=desc)
Where the long description is broken, ``check`` will be able to detect it
Where the long description is broken, ``check`` will be able to detect it
by using the `docutils` parser::
by using the
:mod:
`docutils` parser::
$ pythontrunk setup.py check --restructuredtext
$ pythontrunk setup.py check --restructuredtext
running check
running check
...
@@ -291,3 +290,4 @@ by using the `docutils` parser::
...
@@ -291,3 +290,4 @@ by using the `docutils` parser::
.. % \section{Putting it all together}
.. % \section{Putting it all together}
.. _docutils: http://docutils.sourceforge.net
Doc/distutils/uploading.rst
Dosyayı görüntüle @
8227045b
...
@@ -60,13 +60,14 @@ in the package::
...
@@ -60,13 +60,14 @@ in the package::
setup
(
name
=
'Distutils'
,
setup
(
name
=
'Distutils'
,
long_description
=
open
(
'README.txt'
))
long_description
=
open
(
'README.txt'
))
In
that
case
,
`
README
.
txt
`
is
a
regular
reStructuredText
text
file
located
In
that
case
,
:
file
:
`
README
.
txt
`
is
a
regular
reStructuredText
text
file
located
in
the
root
of
the
package
besides
`
setup
.
py
`.
in
the
root
of
the
package
besides
:
file
:
`
setup
.
py
`.
To
prevent
registering
broken
reStructuredText
content
,
you
can
use
the
To
prevent
registering
broken
reStructuredText
content
,
you
can
use
the
:
program
:`
rst2html
`
program
that
is
provided
by
the
`
docutils
`
package
:
program
:`
rst2html
`
program
that
is
provided
by
the
:
mod
:`
docutils
`
package
and
and
check
the
``
long_description
``
from
the
command
line
::
check
the
``
long_description
``
from
the
command
line
::
$
python
setup
.
py
--
long
-
description
|
rst2html
.
py
>
output
.
html
$
python
setup
.
py
--
long
-
description
|
rst2html
.
py
>
output
.
html
`
docutils
`
will
display
a
warning
if
there
's something wrong with your syntax.
:
mod
:`
docutils
`
will
display
a
warning
if
there
's something wrong with your
syntax.
Doc/library/email.message.rst
Dosyayı görüntüle @
8227045b
...
@@ -118,10 +118,11 @@ Here are the methods of the :class:`Message` class:
...
@@ -118,10 +118,11 @@ Here are the methods of the :class:`Message` class:
When *decode* is ``False`` (the default) the body is returned as a string
When *decode* is ``False`` (the default) the body is returned as a string
without decoding the :mailheader:`Content-Transfer-Encoding`. However,
without decoding the :mailheader:`Content-Transfer-Encoding`. However,
for a :mailheader:`Content-Transfer-Encoding` of 8bit, an attempt is made
for a :mailheader:`Content-Transfer-Encoding` of 8bit, an attempt is made
to decode the original bytes using the `charset` specified by the
to decode the original bytes using the ``charset`` specified by the
:mailheader:`Content-Type` header, using the `replace` error handler. If
:mailheader:`Content-Type` header, using the ``replace`` error handler.
no `charset` is specified, or if the `charset` given is not recognized by
If no ``charset`` is specified, or if the ``charset`` given is not
the email package, the body is decoded using the default ASCII charset.
recognized by the email package, the body is decoded using the default
ASCII charset.
.. method:: set_payload(payload, charset=None)
.. method:: set_payload(payload, charset=None)
...
...
Doc/whatsnew/3.2.rst
Dosyayı görüntüle @
8227045b
...
@@ -197,8 +197,8 @@ in bytes format.
...
@@ -197,8 +197,8 @@ in bytes format.
* Given bytes input to the model, :meth:`~email.message.Message.get_payload`
* Given bytes input to the model, :meth:`~email.message.Message.get_payload`
will by default decode a message body that has a
will by default decode a message body that has a
:mailheader:`Content-Transfer-Encoding` of `
8bit` using the charset specified
:mailheader:`Content-Transfer-Encoding` of `
`8bit`` using the charset
in the MIME headers and return the resulting string.
specified
in the MIME headers and return the resulting string.
* Given bytes input to the model, :class:`~email.generator.Generator` will
* Given bytes input to the model, :class:`~email.generator.Generator` will
convert message bodies that have a :mailheader:`Content-Transfer-Encoding` of
convert message bodies that have a :mailheader:`Content-Transfer-Encoding` of
...
...
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