Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 68588:cd8d3c2d3bce 2.7
#11565: Fix several typos. Patch by Piotr Kasprzyk.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Wed, 16 Mar 2011 12:34:31 +0200 |
| parents | b36cb4602e21 |
| children | 7c3a20b5943a |
line wrap: on
line diff
--- a/Modules/socketmodule.c Wed Mar 16 01:19:49 2011 +0100 +++ b/Modules/socketmodule.c Wed Mar 16 12:34:31 2011 +0200 @@ -2329,7 +2329,7 @@ * This is the guts of the recv() and recv_into() methods, which reads into a * char buffer. If you have any inc/dec ref to do to the objects that contain * the buffer, do it in the caller. This function returns the number of bytes - * succesfully read. If there was an error, it returns -1. Note that it is + * successfully read. If there was an error, it returns -1. Note that it is * also possible that we return a number of bytes smaller than the request * bytes. */ @@ -2442,9 +2442,9 @@ } if (outlen != recvlen) { /* We did not read as many bytes as we anticipated, resize the - string if possible and be succesful. */ + string if possible and be successful. */ if (_PyString_Resize(&buf, outlen) < 0) - /* Oopsy, not so succesful after all. */ + /* Oopsy, not so successful after all. */ return NULL; } @@ -2527,7 +2527,7 @@ * This is the guts of the recvfrom() and recvfrom_into() methods, which reads * into a char buffer. If you have any inc/def ref to do to the objects that * contain the buffer, do it in the caller. This function returns the number - * of bytes succesfully read. If there was an error, it returns -1. Note + * of bytes successfully read. If there was an error, it returns -1. Note * that it is also possible that we return a number of bytes smaller than the * request bytes. * @@ -2620,9 +2620,9 @@ if (outlen != recvlen) { /* We did not read as many bytes as we anticipated, resize the - string if possible and be succesful. */ + string if possible and be successful. */ if (_PyString_Resize(&buf, outlen) < 0) - /* Oopsy, not so succesful after all. */ + /* Oopsy, not so successful after all. */ goto finally; } @@ -4413,7 +4413,7 @@ return 0; /* Failure */ #else - /* No need to initialise sockets with GCC/EMX */ + /* No need to initialize sockets with GCC/EMX */ return 1; /* Success */ #endif } @@ -4449,7 +4449,7 @@ as makefile(), dup() and fromfd(). The import of "_socket" may fail with an ImportError exception if os-specific initialization fails. On Windows, this does WINSOCK initialization. When WINSOCK is - initialized succesfully, a call to WSACleanup() is scheduled to be + initialized successfully, a call to WSACleanup() is scheduled to be made at exit time. */
