diff --git a/xcb-proto-1.13-python39.patch b/xcb-proto-1.13-python39.patch deleted file mode 100644 index a9e9e07..0000000 --- a/xcb-proto-1.13-python39.patch +++ /dev/null @@ -1,39 +0,0 @@ -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): - diff --git a/xcb-proto.spec b/xcb-proto.spec index bb0a1f1..5ec9622 100644 --- a/xcb-proto.spec +++ b/xcb-proto.spec @@ -9,10 +9,6 @@ License: MIT URL: https://xcb.freedesktop.org/ Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 -# cElementTree no longer exists in Python 3.9 -# fractions.gcd has been replaced by math.gcd -Patch0001: xcb-proto-1.13-python39.patch - BuildArch: noarch BuildRequires: python3-devel