[BRLTTY] How does a BrlAPI client detect that brltty has quit?

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Jul 8 20:37:48 EDT 2009


Hello,

Apparently python-pyrex doesn't do its job of translating NULL into
None.  Could you try the attached patch?

Samuel
-------------- next part --------------
Index: Bindings/Python/brlapi.pyx
===================================================================
--- Bindings/Python/brlapi.pyx	(r?vision 4682)
+++ Bindings/Python/brlapi.pyx	(copie de travail)
@@ -83,7 +83,8 @@
 		self.brlerrno = c_brlapi.brlapi_error.brlerrno
 		self.libcerrno = c_brlapi.brlapi_error.libcerrno
 		self.gaierrno = c_brlapi.brlapi_error.gaierrno
-		self.errfun = c_brlapi.brlapi_error.errfun
+		if (c_brlapi.brlapi_error.errfun):
+			self.errfun = c_brlapi.brlapi_error.errfun
 
 	def __str__(self):
 		cdef c_brlapi.brlapi_error_t error


More information about the BRLTTY mailing list