Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 85418:4d62a62ba44d 3.3
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
| author | Serhiy Storchaka <storchaka@gmail.com> |
|---|---|
| date | Tue, 27 Aug 2013 19:40:23 +0300 |
| parents | b7ea3f94f6ca |
| children | 0872257752c2 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Mon Aug 26 14:00:39 2013 +0300 +++ b/Modules/socketmodule.c Tue Aug 27 19:40:23 2013 +0300 @@ -4693,14 +4693,14 @@ y = x & 0xFFFFFFFFUL; if (y ^ x) return PyErr_Format(PyExc_OverflowError, - "long int larger than 32 bits"); + "int larger than 32 bits"); x = y; } #endif } else return PyErr_Format(PyExc_TypeError, - "expected int/long, %s found", + "expected int, %s found", Py_TYPE(arg)->tp_name); return PyLong_FromUnsignedLong(ntohl(x)); } @@ -4750,14 +4750,14 @@ y = x & 0xFFFFFFFFUL; if (y ^ x) return PyErr_Format(PyExc_OverflowError, - "long int larger than 32 bits"); + "int larger than 32 bits"); x = y; } #endif } else return PyErr_Format(PyExc_TypeError, - "expected int/long, %s found", + "expected int, %s found", Py_TYPE(arg)->tp_name); return PyLong_FromUnsignedLong(htonl((unsigned long)x)); }
