besser82 / rpms / xcb-proto

Forked from rpms/xcb-proto 3 years ago
Clone
Blob Blame History Raw
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):