| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -295,7 +295,7 @@ an error value). | |||
| 295 | 295 | :c:data:`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`; | |
| 296 | 296 | the default warning category is :c:data:`PyExc_RuntimeWarning`. The standard | |
| 297 | 297 | Python warning categories are available as global variables whose names are | |
| 298 | - enumerated at :ref:`standarwarningcategories`. | ||
| 298 | + enumerated at :ref:`standardwarningcategories`. | ||
| 299 | 299 | ||
| 300 | 300 | For information about warning control, see the documentation for the | |
| 301 | 301 | :mod:`warnings` module and the :option:`-W` option in the command line | |
@@ -937,7 +937,7 @@ Notes: | |||
| 937 | 937 | Only defined on Windows; protect code that uses this by testing that the | |
| 938 | 938 | preprocessor macro ``MS_WINDOWS`` is defined. | |
| 939 | 939 | ||
| 940 | - .. _standarwarningcategories: | ||
| 940 | + .. _standardwarningcategories: | ||
| 941 | 941 | ||
| 942 | 942 | Standard Warning Categories | |
| 943 | 943 | =========================== | |
@@ -950,7 +950,7 @@ the variables: | |||
| 950 | 950 | .. index:: | |
| 951 | 951 | single: PyExc_Warning | |
| 952 | 952 | single: PyExc_BytesWarning | |
| 953 | - single: PyExc_DepricationWarning | ||
| 953 | + single: PyExc_DeprecationWarning | ||
| 954 | 954 | single: PyExc_FutureWarning | |
| 955 | 955 | single: PyExc_ImportWarning | |
| 956 | 956 | single: PyExc_PendingDeprecationWarning | |
@@ -973,7 +973,7 @@ the variables: | |||
| 973 | 973 | +------------------------------------------+---------------------------------+----------+ | |
| 974 | 974 | | :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | | | |
| 975 | 975 | +------------------------------------------+---------------------------------+----------+ | |
| 976 | - | :c:data:`PyExc_PendingDepricationWarning`| :exc:`PendingDeprecationWarning`| | | ||
| 976 | + | :c:data:`PyExc_PendingDeprecationWarning`| :exc:`PendingDeprecationWarning`| | | ||
| 977 | 977 | +------------------------------------------+---------------------------------+----------+ | |
| 978 | 978 | | :c:data:`PyExc_ResourceWarning` | :exc:`ResourceWarning` | | | |
| 979 | 979 | +------------------------------------------+---------------------------------+----------+ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1683,7 +1683,7 @@ Implementing structured logging | |||
| 1683 | 1683 | ------------------------------- | |
| 1684 | 1684 | ||
| 1685 | 1685 | Although most logging messages are intended for reading by humans, and thus not | |
| 1686 | - readily machine-parseable, there might be cirumstances where you want to output | ||
| 1686 | + readily machine-parseable, there might be circumstances where you want to output | ||
| 1687 | 1687 | messages in a structured format which *is* capable of being parsed by a program | |
| 1688 | 1688 | (without needing complex regular expressions to parse the log message). This is | |
| 1689 | 1689 | straightforward to achieve using the logging package. There are a number of | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -266,10 +266,10 @@ immediate playback:: | |||
| 266 | 266 | 'Draw circle with given radius an options extent and steps: CIRCLE 50' | |
| 267 | 267 | circle(*parse(arg)) | |
| 268 | 268 | def do_position(self, arg): | |
| 269 | - 'Print the current turle position: POSITION' | ||
| 269 | + 'Print the current turtle position: POSITION' | ||
| 270 | 270 | print('Current position is %d %d\n' % position()) | |
| 271 | 271 | def do_heading(self, arg): | |
| 272 | - 'Print the current turle heading in degrees: HEADING' | ||
| 272 | + 'Print the current turtle heading in degrees: HEADING' | ||
| 273 | 273 | print('Current heading is %d\n' % (heading(),)) | |
| 274 | 274 | def do_color(self, arg): | |
| 275 | 275 | 'Set the color: COLOR BLUE' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ this module. | |||
| 62 | 62 | .. class:: EmailMessage(policy=default) | |
| 63 | 63 | ||
| 64 | 64 | If *policy* is specified (it must be an instance of a :mod:`~email.policy` | |
| 65 | - class) use the rules it specifies to udpate and serialize the representation | ||
| 65 | + class) use the rules it specifies to update and serialize the representation | ||
| 66 | 66 | of the message. If *policy* is not set, use the | |
| 67 | 67 | :class:`~email.policy.default` policy, which follows the rules of the email | |
| 68 | 68 | RFCs except for line endings (instead of the RFC mandated ``\r\n``, it uses | |
@@ -108,7 +108,7 @@ this module. | |||
| 108 | 108 | the part a candidate match if the value of the header is ``inline``. | |
| 109 | 109 | ||
| 110 | 110 | If none of the candidates matches any of the preferences in | |
| 111 | - *preferneclist*, return ``None``. | ||
| 111 | + *preferencelist*, return ``None``. | ||
| 112 | 112 | ||
| 113 | 113 | Notes: (1) For most applications the only *preferencelist* combinations | |
| 114 | 114 | that really make sense are ``('plain',)``, ``('html', 'plain')``, and the | |
@@ -396,7 +396,7 @@ Currently the email package provides only one concrete content manager, | |||
| 396 | 396 | MIME charset name, use the standard charset instead. | |
| 397 | 397 | ||
| 398 | 398 | If *cte* is set, encode the payload using the specified content transfer | |
| 399 | - encoding, and set the :mailheader:`Content-Transfer-Endcoding` header to | ||
| 399 | + encoding, and set the :mailheader:`Content-Transfer-Encoding` header to | ||
| 400 | 400 | that value. For ``str`` objects, if it is not set use heuristics to | |
| 401 | 401 | determine the most compact encoding. Possible values for *cte* are | |
| 402 | 402 | ``quoted-printable``, ``base64``, ``7bit``, ``8bit``, and ``binary``. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,9 +108,9 @@ this class is *not* an exception! | |||
| 108 | 108 | return false even though its content type claims to be :mimetype:`multipart`. | |
| 109 | 109 | ||
| 110 | 110 | * :class:`InvalidBase64PaddingDefect` -- When decoding a block of base64 | |
| 111 | - enocded bytes, the padding was not correct. Enough padding is added to | ||
| 111 | + encoded bytes, the padding was not correct. Enough padding is added to | ||
| 112 | 112 | perform the decode, but the resulting decoded bytes may be invalid. | |
| 113 | 113 | ||
| 114 | 114 | * :class:`InvalidBase64CharactersDefect` -- When decoding a block of base64 | |
| 115 | - enocded bytes, characters outside the base64 alphebet were encountered. | ||
| 115 | + encoded bytes, characters outside the base64 alphabet were encountered. | ||
| 116 | 116 | The characters are ignored, but the resulting decoded bytes may be invalid. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ Here are the methods of the :class:`Message` class: | |||
| 50 | 50 | ||
| 51 | 51 | Return the entire message flattened as a string. When optional *unixfrom* | |
| 52 | 52 | is true, the envelope header is included in the returned string. | |
| 53 | - *unixfrom* defaults to ``False``. For backward compabitility reasons, | ||
| 53 | + *unixfrom* defaults to ``False``. For backward compatibility reasons, | ||
| 54 | 54 | *maxheaderlen* defaults to ``0``, so if you want a different value you | |
| 55 | 55 | must override it explicitly (the value specified for *max_line_length* in | |
| 56 | 56 | the policy will be ignored by this method). The *policy* argument may be | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -203,7 +203,7 @@ Here are the classes: | |||
| 203 | 203 | ||
| 204 | 204 | Unless the *_charset* argument is explicitly set to ``None``, the | |
| 205 | 205 | MIMEText object created will have both a :mailheader:`Content-Type` header | |
| 206 | - with a ``charset`` parameter, and a :mailheader:`Content-Transfer-Endcoding` | ||
| 206 | + with a ``charset`` parameter, and a :mailheader:`Content-Transfer-Encoding` | ||
| 207 | 207 | header. This means that a subsequent ``set_payload`` call will not result | |
| 208 | 208 | in an encoded payload, even if a charset is passed in the ``set_payload`` | |
| 209 | 209 | command. You can "reset" this behavior by deleting the | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -540,7 +540,7 @@ more closely to the RFCs relevant to their domains. | |||
| 540 | 540 | ||
| 541 | 541 | The same as ``SMTP`` except that :attr:`~EmailPolicy.utf8` is ``True``. | |
| 542 | 542 | Useful for serializing messages to a message store without using encoded | |
| 543 | - words in the headers. Should only be used for SMTP trasmission if the | ||
| 543 | + words in the headers. Should only be used for SMTP transmission if the | ||
| 544 | 544 | sender or recipient addresses have non-ASCII characters (the | |
| 545 | 545 | :meth:`smtplib.SMTP.send_message` method handles this automatically). | |
| 546 | 546 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -118,7 +118,7 @@ AU_read objects, as returned by :func:`.open` above, have the following methods: | |||
| 118 | 118 | ||
| 119 | 119 | .. method:: AU_read.getnchannels() | |
| 120 | 120 | ||
| 121 | - Returns number of audio channels (1 for mone, 2 for stereo). | ||
| 121 | + Returns number of audio channels (1 for mono, 2 for stereo). | ||
| 122 | 122 | ||
| 123 | 123 | ||
| 124 | 124 | .. method:: AU_read.getsampwidth() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1220,7 +1220,7 @@ always available. | |||
| 1220 | 1220 | | | * ``None`` if this information is unknown | | |
| 1221 | 1221 | +------------------+---------------------------------------------------------+ | |
| 1222 | 1222 | | :const:`version` | Name and version of the thread library. It is a string, | | |
| 1223 | - | | or ``None`` if these informations are unknown. | | ||
| 1223 | + | | or ``None`` if this information is unknown. | | ||
| 1224 | 1224 | +------------------+---------------------------------------------------------+ | |
| 1225 | 1225 | ||
| 1226 | 1226 | .. versionadded:: 3.3 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments