CBL-Mariner/SPECS/xcb-proto/xcb-proto-1.13-python39.patch

40 строки
1.2 KiB
Diff

Index: xcb-proto-1.13/xcbgen/matcher.py
===================================================================
--- xcb-proto-1.13.orig/xcbgen/matcher.py
+++ xcb-proto-1.13/xcbgen/matcher.py
@@ -7,7 +7,7 @@ we do not create a new type object, we j
'''
from os.path import join
-from xml.etree.cElementTree import parse
+from xml.etree.ElementTree import parse
from xcbgen.xtypes import *
Index: xcb-proto-1.13/xcbgen/state.py
===================================================================
--- xcb-proto-1.13.orig/xcbgen/state.py
+++ xcb-proto-1.13/xcbgen/state.py
@@ -2,7 +2,7 @@
This module contains the namespace class and the singleton module class.
'''
from os.path import dirname, basename
-from xml.etree.cElementTree import parse
+from xml.etree.ElementTree import parse
from xcbgen import matcher
from xcbgen.error import *
Index: xcb-proto-1.13/xcbgen/align.py
===================================================================
--- xcb-proto-1.13.orig/xcbgen/align.py
+++ xcb-proto-1.13/xcbgen/align.py
@@ -2,7 +2,7 @@
This module contains helper classes for alignment arithmetic and checks
'''
-from fractions import gcd
+from math import gcd
class Alignment(object):