]> git.draconx.ca Git - gentoo-fixes.git/blob - dev-python/pycairo/files/pycairo-1.19.1-py39.patch
Resurrect dev-python/pygtk.
[gentoo-fixes.git] / dev-python / pycairo / files / pycairo-1.19.1-py39.patch
1 From 3ecf0a4060d6de3b92a77a393ece663455cf6add Mon Sep 17 00:00:00 2001
2 From: Christoph Reiter <reiter.christoph@gmail.com>
3 Date: Sun, 10 May 2020 11:22:40 +0200
4 Subject: [PATCH] tests: Fix syntax issue with Python 3.9
5
6 https://bugs.python.org/issue40246
7
8 I haven't actually tested with 3.9 yet, so this is just what I found
9 with grep.
10 ---
11  tests/test_enums.py | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/tests/test_enums.py b/tests/test_enums.py
15 index 4bc2e3d..02756d0 100644
16 --- a/tests/test_enums.py
17 +++ b/tests/test_enums.py
18 @@ -79,7 +79,7 @@ def get_prefix(t):
19          # special case..
20          if name == "PathDataType":
21              name = "Path"
22 -        return"_".join([s.upper() for s in re.findall('[A-Z][^A-Z]*', name)])
23 +        return "_".join([s.upper() for s in re.findall('[A-Z][^A-Z]*', name)])
24  
25      for t in types_:
26          for name in dir(t):