Ticket #26418: xcbproto-python3.patch
File xcbproto-python3.patch, 692 bytes (added by jmroot (Joshua Root), 13 years ago) |
---|
-
xcbgen/matcher.py
we do not create a new type object, we just record the existing one under a new 9 9 from os.path import join 10 10 from xml.etree.cElementTree import parse 11 11 12 import state 13 from xtypes import * 12 from xcbgen.xtypes import * 14 13 15 14 def import_(node, module, namespace): 16 15 ''' 17 16 For imports, we load the file, create a new namespace object, 18 17 execute recursively, then record the import (for header files, etc.) 19 18 ''' 19 # To avoid circular import error 20 from xcbgen import state 20 21 new_file = join(namespace.dir, '%s.xml' % node.text) 21 22 new_root = parse(new_file).getroot() 22 23 new_namespace = state.Namespace(new_file)