MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / ErrorHandler

Class ErrorHandler

Externals/LibXML/python/tests/thread2.py:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10failed = 0
11
12class ErrorHandler:
13
14 def __init__(self):
15 self.errors = []
16 self.lock = Lock()
17
18 def handler(self,ctx,str):
19 self.lock.acquire()
20 self.errors.append(str)
21 self.lock.release()
22
23def getLineNumbersDefault():
24 old = libxml2.lineNumbersDefault(0)

Callers 1

thread2.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected