Skip to content

Commit cabef4e

Browse files
committed
Update Py2-ism.
1 parent 6ef1e08 commit cabef4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lupa/_lupa.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ cdef class _LuaObject:
938938
lua.lua_settop(L, old_top)
939939
unlock_runtime(self._runtime)
940940

941-
def __nonzero__(self):
941+
def __bool__(self):
942942
return True
943943

944944
def __iter__(self):

0 commit comments

Comments
 (0)