Explorar el Código

python: fix python3 problem

tags/v0.99.beta20
Alex Foulon hace 9 años
padre
commit
551ad91775
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      python/caca/canvas.py

+ 4
- 1
python/caca/canvas.py Ver fichero

@@ -47,7 +47,10 @@ class _Canvas(object):
_lib.caca_free_canvas.argtypes = [_Canvas]
_lib.caca_free_canvas.restype = ctypes.c_int

return _lib.caca_free_canvas(self)
if self is not None:
return _lib.caca_free_canvas(self)

return None

class Canvas(_Canvas):
""" Canvas object, methods are libcaca functions with canvas_t as


Cargando…
Cancelar
Guardar