[Xcb-commit] xcb/proto: xcbgen
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Oct 9 09:46:14 UTC 2021
xcbgen/xtypes.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c9be9015959f3d3830d847db44d39c5d21ba55b6
Author: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
Date: Mon Oct 4 12:37:55 2021 +0100
Fix python version check from 65169c1af7893882c21d1e2a544903212b8d6fb0
With commit 65169c1af7893882c21d1e2a544903212b8d6fb0, I am seeing build
failures in libxcb, using sys.version_info fixes those.
diff --git a/xcbgen/xtypes.py b/xcbgen/xtypes.py
index c8c4e01..81ca6e1 100644
--- a/xcbgen/xtypes.py
+++ b/xcbgen/xtypes.py
@@ -1,10 +1,11 @@
'''
This module contains the classes which represent XCB data types.
'''
+import sys
from xcbgen.expr import Field, Expression
from xcbgen.align import Alignment, AlignmentLog
-if version_info[:2] >= (3, 3):
+if sys.version_info[:2] >= (3, 3):
from xml.etree.ElementTree import SubElement
else:
from xml.etree.cElementTree import SubElement
More information about the xcb-commit
mailing list