Blob Blame History Raw
Patch by Robert Scheck <robert@fedoraproject.org> which makes boto >= 0.9b working
by using the older Python 2.3, that doesn't support the non-decorator syntax, which
is used at @staticmethod.

--- boto-0.9b/boto/mturk/connection.py		2007-06-04 23:19:27.000000000 +0200
+++ boto-0.9b/boto/mturk/connection.py.python23	2007-08-30 12:53:24.000000000 +0200
@@ -171,7 +171,6 @@
         else:
             raise EC2ResponseError(response.status, response.reason, body)
     
-    @staticmethod
     def get_keywords_as_string(keywords):
         """
         Returns a comma+space-separated string of keywords from either a list or a string
@@ -185,8 +184,8 @@
         else:
             raise TypeError("keywords argument must be a string or a list of strings; got a %s" % type(keywords))
         return final_keywords
+    get_keywords_as_string = staticmethod(get_keywords_as_string)
     
-    @staticmethod
     def get_price_as_price(reward):
         """
         Returns a Price data structure from either a float or a Price
@@ -196,3 +195,4 @@
         else:
             final_price = Price(reward)
         return final_price
+    get_price_as_price = staticmethod(get_price_as_price)