Bug#525365: Fix for python-boto incompatible with python2.4

2009-04-26 Thread Vincent Bernat
tags 525365 + patch
thanks

Hi!

Here is a patch for this issue.

--- python-boto-1.7a/debian/pyversions~ 2009-04-26 19:08:43.0 +0200
+++ python-boto-1.7a/debian/pyversions  2009-04-26 19:09:41.0 +0200
@@ -1 +1 @@
-2.4-
+2.5-

-- 
I WILL NOT XEROX MY BUTT
I WILL NOT XEROX MY BUTT
I WILL NOT XEROX MY BUTT
-+- Bart Simpson on chalkboard in episode 7F01


pgp74HiP64rBu.pgp
Description: PGP signature


Bug#525365: Fix for python-boto incompatible with python2.4

2009-04-26 Thread Eric Evans
[ 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 +
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