summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-19 02:45:37 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-19 02:45:37 (GMT)
commit90aa7646affbaee9628ca6ea6a702aec17b3b550 (patch)
treee820962e9658a92c7147b686f8aa88c7658c5949 /Modules/_ssl.c
parent99170a5dbf4cfee78b578672b6821e855f92594b (diff)
downloadcpython-90aa7646affbaee9628ca6ea6a702aec17b3b550.zip
cpython-90aa7646affbaee9628ca6ea6a702aec17b3b550.tar.gz
cpython-90aa7646affbaee9628ca6ea6a702aec17b3b550.tar.bz2
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 58b04a6..13d27cc 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -127,7 +127,7 @@ static int check_socket_and_wait_for_timeout(PySocketSockObject *s,
static PyObject *PySSL_peercert(PySSLObject *self, PyObject *args);
static PyObject *PySSL_cipher(PySSLObject *self);
-#define PySSLObject_Check(v) (Py_Type(v) == &PySSL_Type)
+#define PySSLObject_Check(v) (Py_TYPE(v) == &PySSL_Type)
typedef enum {
SOCKET_IS_NONBLOCKING,
@@ -1451,7 +1451,7 @@ PySSL_RAND_egd(PyObject *self, PyObject *arg)
if (!PyUnicode_Check(arg))
return PyErr_Format(PyExc_TypeError,
"RAND_egd() expected string, found %s",
- Py_Type(arg)->tp_name);
+ Py_TYPE(arg)->tp_name);
bytes = RAND_egd(PyUnicode_AsString(arg));
if (bytes == -1) {
PyErr_SetString(PySSLErrorObject,
@@ -1568,7 +1568,7 @@ init_ssl(void)
{
PyObject *m, *d;
- Py_Type(&PySSL_Type) = &PyType_Type;
+ Py_TYPE(&PySSL_Type) = &PyType_Type;
m = Py_InitModule3("_ssl", PySSL_methods, module_doc);
if (m == NULL)