예제 #1
0
 def GetErrorHandler(self):
     """Return (f,arg) as previously registered with setErrorHandler
        or (None,None)."""
     f,arg = libxml2mod.xmlTextReaderGetErrorHandler(self._o)
     if f is None:
         return None,None
     else:
         # assert f is _xmlTextReaderErrorFunc
         return arg
예제 #2
0
 def GetErrorHandler(self):
     """Return (f,arg) as previously registered with setErrorHandler
        or (None,None)."""
     f,arg = libxml2mod.xmlTextReaderGetErrorHandler(self._o)
     if f is None:
         return None,None
     else:
         # assert f is _xmlTextReaderErrorFunc
         return arg