Use absolute imports in xcbgen for Python 3 compatibility
authorDavid Coles <dcoles@gaikai.com>
Fri, 8 Apr 2011 23:49:30 +0000 (16:49 -0700)
committerJulien Danjou <julien@danjou.info>
Tue, 3 May 2011 08:21:55 +0000 (10:21 +0200)
commitf877a6f34c16bc73bccc18073b3512318d49e92c
treea0cc93cff1911e1052a482f9bbc70a3ca27fa010
parentc4497cdbf0640c376cdebb0a9e5ea62458e6ba51
Use absolute imports in xcbgen for Python 3 compatibility

Python 3 has stricter syntax for relative imports. Use absolute imports to
ensure compatibility with all versions of Python. Also break cyclical module
import between state.py and matcher.py by deferring import.

Signed-off-by: David Coles <dcoles@gaikai.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
xcbgen/matcher.py
xcbgen/state.py
xcbgen/xtypes.py