diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-10-04 12:37:55 +0100 |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-10-04 12:37:55 +0100 |
commit | c9be9015959f3d3830d847db44d39c5d21ba55b6 (patch) | |
tree | a26f639363c08fd309de090c996ab24d1f43495f | |
parent | 65169c1af7893882c21d1e2a544903212b8d6fb0 (diff) | |
download | xcb-proto-c9be9015959f3d3830d847db44d39c5d21ba55b6.tar.gz |
Fix python version check from 65169c1af7893882c21d1e2a544903212b8d6fb0
With commit 65169c1af7893882c21d1e2a544903212b8d6fb0, I am seeing build
failures in libxcb, using sys.version_info fixes those.
-rw-r--r-- | xcbgen/xtypes.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |