Commit 5910a3ff authored by Denis Bilenko's avatar Denis Bilenko

fix evbuffer.pxi to be compatible with cython 0.12

parent 2f59f484
......@@ -33,7 +33,8 @@ cdef class buffer:
return evbuffer_get_length(self.__obj)
def __nonzero__(self):
return self.__obj and evbuffer_get_length(self.__obj)
if self.__obj:
return evbuffer_get_length(self.__obj)
# cython does not implement generators
#def __iter__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment