besser82 / rpms / xcb-proto

Forked from rpms/xcb-proto 4 years ago
Clone

Blame xcb-proto-1.13-python39.patch

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