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 
    99from os.path import join
    1010from xml.etree.cElementTree import parse
    1111
    12 import state
    13 from xtypes import *
     12from xcbgen.xtypes import *
    1413
    1514def import_(node, module, namespace):
    1615    '''
    1716    For imports, we load the file, create a new namespace object,
    1817    execute recursively, then record the import (for header files, etc.)
    1918    '''
     19    # To avoid circular import error
     20    from xcbgen import state
    2021    new_file = join(namespace.dir, '%s.xml' % node.text)
    2122    new_root = parse(new_file).getroot()
    2223    new_namespace = state.Namespace(new_file)