| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1583,7 +1583,7 @@ called ``preserve``:: | |||
| 1583 | 1583 | ||
| 1584 | 1584 | preserve | |
| 1585 | 1585 | ||
| 1586 | - This tells Clinic that the current contents of the output should be kept, unmodifed. | ||
| 1586 | + This tells Clinic that the current contents of the output should be kept, unmodified. | ||
| 1587 | 1587 | This is used internally by Clinic when dumping output into ``file`` files; wrapping | |
| 1588 | 1588 | it in a Clinic block lets Clinic use its existing checksum functionality to ensure | |
| 1589 | 1589 | the file was not modified by hand before it gets overwritten. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ mainloop of the web server:: | |||
| 106 | 106 | There's actually 3 general ways in which this loop could work - dispatching a | |
| 107 | 107 | thread to handle ``clientsocket``, create a new process to handle | |
| 108 | 108 | ``clientsocket``, or restructure this app to use non-blocking sockets, and | |
| 109 | - mulitplex between our "server" socket and any active ``clientsocket``\ s using | ||
| 109 | + multiplex between our "server" socket and any active ``clientsocket``\ s using | ||
| 110 | 110 | ``select``. More about that later. The important thing to understand now is | |
| 111 | 111 | this: this is *all* a "server" socket does. It doesn't send any data. It doesn't | |
| 112 | 112 | receive any data. It just produces "client" sockets. Each ``clientsocket`` is | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,7 +66,7 @@ The structure of INI files is described `in the following section | |||
| 66 | 66 | <#supported-ini-file-structure>`_. Essentially, the file | |
| 67 | 67 | consists of sections, each of which contains keys with values. | |
| 68 | 68 | :mod:`configparser` classes can read and write such files. Let's start by | |
| 69 | - creating the above configuration file programatically. | ||
| 69 | + creating the above configuration file programmatically. | ||
| 70 | 70 | ||
| 71 | 71 | .. doctest:: | |
| 72 | 72 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -629,7 +629,7 @@ ABC hierarchy:: | |||
| 629 | 629 | .. method:: path_stats(path) | |
| 630 | 630 | ||
| 631 | 631 | Optional abstract method which returns a :class:`dict` containing | |
| 632 | - metadata about the specifed path. Supported dictionary keys are: | ||
| 632 | + metadata about the specified path. Supported dictionary keys are: | ||
| 633 | 633 | ||
| 634 | 634 | - ``'mtime'`` (mandatory): an integer or floating-point number | |
| 635 | 635 | representing the modification time of the source code; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1900,7 +1900,7 @@ features: | |||
| 1900 | 1900 | On Unix, *path* can be of type :class:`str` or :class:`bytes` (use | |
| 1901 | 1901 | :func:`~os.fsencode` and :func:`~os.fsdecode` to encode and decode | |
| 1902 | 1902 | :class:`bytes` paths). On Windows, *path* must be of type :class:`str`. | |
| 1903 | - On both sytems, the type of the :attr:`~DirEntry.name` and | ||
| 1903 | + On both systems, the type of the :attr:`~DirEntry.name` and | ||
| 1904 | 1904 | :attr:`~DirEntry.path` attributes of each :class:`DirEntry` will be of | |
| 1905 | 1905 | the same type as *path*. | |
| 1906 | 1906 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1211,7 +1211,7 @@ to sockets. | |||
| 1211 | 1211 | much data, if any, was successfully sent. | |
| 1212 | 1212 | ||
| 1213 | 1213 | .. versionchanged:: 3.5 | |
| 1214 | - The socket timeout is no more reset each time data is sent successfuly. | ||
| 1214 | + The socket timeout is no more reset each time data is sent successfully. | ||
| 1215 | 1215 | The socket timeout is now the maximum total duration to send all data. | |
| 1216 | 1216 | ||
| 1217 | 1217 | .. versionchanged:: 3.5 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray( | |||
| 159 | 159 | example, if is_signed is 0 and there are more digits in the v than | |
| 160 | 160 | fit in n; or if is_signed is 1, v < 0, and n is just 1 bit shy of | |
| 161 | 161 | being large enough to hold a sign bit. OverflowError is set in this | |
| 162 | - case, but bytes holds the least-signficant n bytes of the true value. | ||
| 162 | + case, but bytes holds the least-significant n bytes of the true value. | ||
| 163 | 163 | */ | |
| 164 | 164 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | |
| 165 | 165 | unsigned char* bytes, size_t n, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,7 +76,7 @@ def test_bool_values(self): | |||
| 76 | 76 | self.assertEqual(t(v).value, truth(v)) | |
| 77 | 77 | ||
| 78 | 78 | def test_typeerror(self): | |
| 79 | - # Only numbers are allowed in the contructor, | ||
| 79 | + # Only numbers are allowed in the constructor, | ||
| 80 | 80 | # otherwise TypeError is raised | |
| 81 | 81 | for t in signed_types + unsigned_types + float_types: | |
| 82 | 82 | self.assertRaises(TypeError, t, "") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ class XX(Structure): | |||
| 106 | 106 | self.assertEqual(alignment(XX), alignment(X)) | |
| 107 | 107 | self.assertEqual(sizeof(XX), calcsize("3s 3s 0s")) | |
| 108 | 108 | ||
| 109 | - def test_emtpy(self): | ||
| 109 | + def test_empty(self): | ||
| 110 | 110 | # I had problems with these | |
| 111 | 111 | # | |
| 112 | 112 | # Although these are pathological cases: Empty Structures! | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -706,7 +706,7 @@ def today(cls): | |||
| 706 | 706 | ||
| 707 | 707 | @classmethod | |
| 708 | 708 | def fromordinal(cls, n): | |
| 709 | - """Contruct a date from a proleptic Gregorian ordinal. | ||
| 709 | + """Construct a date from a proleptic Gregorian ordinal. | ||
| 710 | 710 | ||
| 711 | 711 | January 1 of year 1 is day 1. Only the year, month and day are | |
| 712 | 712 | non-zero in the result. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments