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]
/
codec.pyx
diff --git
a/codec.pyx
b/codec.pyx
index aa5e69201e4e01126353874828f0c76db6d6b8bb..b9f910fd1ab3fb09547f6b05f46de8f9a0b1e0b5 100644
(file)
--- a/
codec.pyx
+++ b/
codec.pyx
@@
-115,7
+115,7
@@
cdef class _BaseCodec:
raise ValueError, 'Encoding finished'
DCREATE(&d)
try:
raise ValueError, 'Encoding finished'
DCREATE(&d)
try:
- PyObject_AsReadBuffer(text, &p, &len)
+ PyObject_AsReadBuffer(text,
<cvp *>
&p, &len)
code(me.c, p, len, &d)
if finishp:
code(me.c, NULL, 0, &d)
code(me.c, p, len, &d)
if finishp:
code(me.c, NULL, 0, &d)