chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ident.pyx, defs.pxi: Use Pyrex `typecheck' for type checking.
[mLib-python]
/
ident.pyx
diff --git
a/ident.pyx
b/ident.pyx
index 1cc9e9e55f7bbf04253e96a776bb028f81519762..7ea6b454d10c749da8c24059cae6bed0f0b5783c 100644
(file)
--- a/
ident.pyx
+++ b/
ident.pyx
@@
-55,9
+55,9
@@
cdef class SelIdentify:
badproc = None, errorproc = None, failedproc = None,
*hunoz, **hukairz):
cdef sockaddr_in s_in, s_out
badproc = None, errorproc = None, failedproc = None,
*hunoz, **hukairz):
cdef sockaddr_in s_in, s_out
- cdef s
ize
_t sz_in, sz_out
+ cdef s
ocklen
_t sz_in, sz_out
cdef int fd
cdef int fd
- if
PyObject_TypeC
heck(sk, socket.SocketType):
+ if
typec
heck(sk, socket.SocketType):
fd = sk.fileno()
sz_in = PSIZEOF(&s_in)
sz_out = PSIZEOF(&s_out)
fd = sk.fileno()
sz_in = PSIZEOF(&s_in)
sz_out = PSIZEOF(&s_out)