From 7917fb1475b0775275bfc15686d0509fe84c110e Mon Sep 17 00:00:00 2001 From: parente Date: Tue, 8 May 2007 18:03:12 +0000 Subject: [PATCH] * Fixed bug #436930, Syntax error when raising IndexError git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@919 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- pyatspi/ChangeLog | 6 ++++++ pyatspi/accessible.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pyatspi/ChangeLog b/pyatspi/ChangeLog index d80ca8c..8ddbef7 100644 --- a/pyatspi/ChangeLog +++ b/pyatspi/ChangeLog @@ -1,5 +1,11 @@ 2007-05-08 Peter Parente + Patch from Eitan Isaacson + * accessible.py: + Fixed bug #436930, Syntax error when raising IndexError + +2007-05-08 Peter Parente + Patch from Eitan Isaacson * event.py: Fixed bug #435947, Fix reference count error diff --git a/pyatspi/accessible.py b/pyatspi/accessible.py index aef89e1..b5ab01d 100644 --- a/pyatspi/accessible.py +++ b/pyatspi/accessible.py @@ -419,7 +419,7 @@ class _AccessibleMixin(object): if index >= n: raise IndexError elif index < -n: - raise IndexError: + raise IndexError elif index < 0: index += n return self.getChildAtIndex(index) -- 2.7.4