You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
30 lines
1.2 KiB
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)
|