diff options
Diffstat (limited to 'xcbgen/matcher.py')
-rw-r--r-- | xcbgen/matcher.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xcbgen/matcher.py b/xcbgen/matcher.py index 97a8b43..a13ef28 100644 --- a/xcbgen/matcher.py +++ b/xcbgen/matcher.py @@ -7,7 +7,12 @@ we do not create a new type object, we just record the existing one under a new ''' from os.path import join -from xml.etree.cElementTree import parse +from sys import version_info + +if version_info[:2] >= (3, 9): + from xml.etree.ElementTree import parse +else: + from xml.etree.cElementTree import parse from xcbgen.xtypes import * |