[orca] Python 3 migration - raise and except
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Python 3 migration - raise and except
- Date: Tue, 1 May 2012 04:19:29 +0000 (UTC)
commit 5861409567fba92b4a0e2c8be4ac873261caa8dd
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue May 1 00:17:25 2012 -0400
Python 3 migration - raise and except
(Really just raise since except was fine as-is)
src/orca/flat_review.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index ecd9bae..d8f56b5 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -156,7 +156,7 @@ class Word:
self.chars = None
return self.chars
elif attr.startswith('__') and attr.endswith('__'):
- raise AttributeError, attr
+ raise AttributeError(attr)
else:
return self.__dict__[attr]
@@ -211,7 +211,7 @@ class Zone:
return self.words
elif attr.startswith('__') and attr.endswith('__'):
- raise AttributeError, attr
+ raise AttributeError(attr)
else:
return self.__dict__[attr]
@@ -315,7 +315,7 @@ class TextZone(Zone):
return self.words
elif attr.startswith('__') and attr.endswith('__'):
- raise AttributeError, attr
+ raise AttributeError(attr)
else:
return self.__dict__[attr]
@@ -525,7 +525,7 @@ class Line:
elif attr == "height":
return bounds[3] - bounds[1]
elif attr.startswith('__') and attr.endswith('__'):
- raise AttributeError, attr
+ raise AttributeError(attr)
else:
return self.__dict__[attr]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]