...
 
Commits (2)
accerciser (3.22.0-7) unstable; urgency=medium
* Cherry-pick Python-3.7-support-async-is-a-keyword.patch: (Closes: #910648)
-- Jeremy Bicha <jbicha@debian.org> Tue, 09 Oct 2018 05:59:05 -0400
accerciser (3.22.0-6) unstable; urgency=medium
[ Jeremy Bicha ]
......
From: Mario Lang <mlang@debian.org>
Date: Mon, 16 Jun 2008 20:05:39 +0000
Subject: Remove hardcoded python version from startup script
---
src/accerciser.in | 4 ----
src/accerciser.in | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/accerciser.in b/src/accerciser.in
index 4160b17..7b5e55b 100755
--- a/src/accerciser.in
+++ b/src/accerciser.in
@@ -35,10 +35,6 @@ sys.path.append(os.path.join(GLib.get_us
@@ -35,10 +35,6 @@ sys.path.append(os.path.join(GLib.get_user_config_dir(), 'accerciser'))
# We can't rely on prefix if we're installed by relocated RPM. Instead, we
# use __file__ and for now hope that lib is relative to bin.
sys.prefix = '@prefix@'
......
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Tue, 12 Sep 2017 14:57:08 +0000
Subject: ipython: Update to support IPython version 5
commit 5a3242b4c7f5a5c844a20821881d68d1cabcae1e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Jun 10 00:58:12 2018 +0200
ipython: Update to support IPython version 5
Fixes https://bugzilla.gnome.org/show_bug.cgi?776301
Bug-Debian: https://bugs.debian.org/848119
Bug: https://bugzilla.gnome.org/show_bug.cgi?776301
---
plugins/ipython_view.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/plugins/ipython_view.py b/plugins/ipython_view.py
index 04f2d53..ae3d2be 100755
......
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Mon, 11 Jun 2018 23:04:55 +0200
Subject: Fix accessing items without a compositor
Bug-Debian: https://bugs.debian.org/875629
---
src/lib/accerciser/node.py | 33 ++++++++++++++++-----------------
src/lib/accerciser/node.py | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/src/lib/accerciser/node.py b/src/lib/accerciser/node.py
index 9c39101..492b9bc 100644
--- a/src/lib/accerciser/node.py
+++ b/src/lib/accerciser/node.py
@@ -24,6 +24,8 @@ import pyatspi
......@@ -13,7 +20,7 @@
MAX_BLINKS = 6
gsettings = GSettings.new('org.a11y.Accerciser')
@@ -147,14 +149,11 @@ class Node(GObject.GObject, ToolsAccesso
@@ -147,14 +149,11 @@ class Node(GObject.GObject, ToolsAccessor):
self.max_blinks = times
self.blinks = 0
# get info for drawing higlight rectangles
......@@ -33,7 +40,7 @@
self.inv = gtk.Invisible()
self.inv.set_screen(screen)
GLib.timeout_add(30, self._drawRectangle)
@@ -167,7 +166,7 @@ class Node(GObject.GObject, ToolsAccesso
@@ -167,7 +166,7 @@ class Node(GObject.GObject, ToolsAccessor):
if self.blinks == 0:
self.inv.show()
self.inv.grab_add()
......
From: =?utf-8?q?Miro_Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Thu, 28 Jun 2018 19:20:17 +0200
Subject: 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()
01_remove_site_package_version.patch
02_ipython5.patch
03_get_image.patch
Python-3.7-support-async-is-a-keyword.patch