#1 Add patch for Python 3.7 compatibility
Merged 5 years ago by kalev. Opened 5 years ago by churchyard.
rpms/ churchyard/accerciser py37  into  master

@@ -0,0 +1,30 @@ 

+ From 613ee939c3062c952bfaff432395f890d044e8d1 Mon Sep 17 00:00:00 2001

+ From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>

+ Date: Thu, 28 Jun 2018 19:20:17 +0200

+ Subject: [PATCH] Python 3.7+ support, async is a keyword

+ 

+     File "accerciser/accerciser.py", line 106

+       pyatspi.Registry.start(async=True, gil=False)

+                                  ^

+     SyntaxError: invalid syntax

+ ---

+  src/lib/accerciser/accerciser.py | 3 ++-

+  1 file changed, 2 insertions(+), 1 deletion(-)

+ 

+ diff --git a/src/lib/accerciser/accerciser.py b/src/lib/accerciser/accerciser.py

+ index fa6e5c7..065a7fe 100644

+ --- a/src/lib/accerciser/accerciser.py

+ +++ b/src/lib/accerciser/accerciser.py

+ @@ -103,7 +103,8 @@ class Main(Tools):

+      '''

+      GLib.timeout_add(200, self._pumpEvents)

+      try:

+ -      pyatspi.Registry.start(async=True, gil=False)

+ +      # async is a reserved keyword in Python 3.7+, so we pass the args as dict

+ +      pyatspi.Registry.start(**{'async': True, 'gil': False})

+      except KeyboardInterrupt:

+        self._shutDown()

+  

+ -- 

+ 2.17.0

+ 

file modified
+4 -1
@@ -10,6 +10,9 @@ 

  URL:            https://wiki.gnome.org/Apps/Accerciser

  Source0:        https://download.gnome.org/sources/accerciser/%{release_version}/accerciser-%{version}.tar.xz

  

+ # https://gitlab.gnome.org/GNOME/accerciser/merge_requests/1

+ Patch0:         0001-Python-3.7-support-async-is-a-keyword.patch

+ 

  BuildArch:      noarch

  

  BuildRequires:  at-spi2-core-devel
@@ -36,7 +39,7 @@ 

  

  

  %prep

- %setup -q

+ %autosetup -p1

  

  

  %build