commit | 48659610e7e3808e23e60c8cee44be434ffdf95c | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Wed Apr 06 17:22:15 2011 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Wed Apr 06 17:22:15 2011 -0400 |
tree | 53bbec7e06914c7e59d0c031f13679c33ab93059 | |
parent | 9e6fcf8a1c4fc1d5b9f941505c27c4094ac54795 [diff] |
There is no more PyInt_FromLong in 3.x; PyLong_FromLong works everywhere
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c index 7026edb..5d03d2e 100644 --- a/OpenSSL/crypto/x509.c +++ b/OpenSSL/crypto/x509.c
@@ -698,7 +698,7 @@ return NULL; } - return PyInt_FromLong((long)X509_get_ext_count(self->x509)); + return PyLong_FromLong((long)X509_get_ext_count(self->x509)); } static char crypto_X509_get_extension_doc[] = "\n\