[ Vincent Bernat ]
> tags 525365 + patch
> thanks
> 
> Hi!
> 
> Here is a patch for this issue.

Thanks Vincent. Upstream endeavors to support 2.4 through 2.6, this one
just slipped past them (and me). I think so long as boto can be run under
2.4, it makes sense for the packaging to continue supporting it.

I've suggested the attached patch to upstream. One way or another though
I'll make an upload to address this in the next day or so.

Regards,

-- 
Eric Evans
eev...@debian.org
>From 334cacc8c827fc0f85fb82ae0d9d6fa05bbd8b98 Mon Sep 17 00:00:00 2001
From: Eric Evans <eev...@debian.org>
Date: Sat, 25 Apr 2009 02:14:53 +0000
Subject: [PATCH] try/except/finally does not work with 2.4 (is >=2.5)

---
 boto/sdb/db/test_db.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/boto/sdb/db/test_db.py b/boto/sdb/db/test_db.py
index f21b6cf..8fafa48 100644
--- a/boto/sdb/db/test_db.py
+++ b/boto/sdb/db/test_db.py
@@ -157,10 +157,11 @@ def test_unique():
     _objects['test_unique_tt'] = tt
     tt.name = "foo"
     try:
-        tt.put()
-        assert False
-    except(SDBPersistenceError):
-        pass
+        try:
+            tt.put()
+            assert False
+        except(SDBPersistenceError):
+            pass
     finally:
         t.delete()
 
-- 
1.6.2.4

Reply via email to