diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2020-12-13 10:56:08 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2020-12-13 10:56:08 +0000 |
commit | 363de2dc148b9d7836c10e232ee48841e3149a9d (patch) | |
tree | ccf91372395447816d9edf6c3b4a8a73b6f4ef12 /proto/xcb-proto/xcbgen/state.py | |
parent | e30c43647d02d12eae3bc6ad57aa3a6ddef8b5fa (diff) |
Update to xcb-proto 1.14.1. No functional changes.
Diffstat (limited to 'proto/xcb-proto/xcbgen/state.py')
-rw-r--r-- | proto/xcb-proto/xcbgen/state.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/proto/xcb-proto/xcbgen/state.py b/proto/xcb-proto/xcbgen/state.py index 0dbecdc7b..ffbfc14ee 100644 --- a/proto/xcb-proto/xcbgen/state.py +++ b/proto/xcb-proto/xcbgen/state.py @@ -2,7 +2,12 @@ This module contains the namespace class and the singleton module class. ''' from os.path import dirname, basename -from xml.etree.cElementTree import parse +from sys import version_info + +if version_info[:2] >= (3, 3): + from xml.etree.ElementTree import parse +else: + from xml.etree.cElementTree import parse from xcbgen import matcher from xcbgen.error import * |