Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: third_party/gsutil/boto/boto/mturk/question.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/boto/boto/mturk/qualification.py ('k') | third_party/gsutil/boto/boto/plugin.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/boto/boto/mturk/question.py
diff --git a/third_party/gsutil/20110627/boto/boto/mturk/question.py b/third_party/gsutil/boto/boto/mturk/question.py
similarity index 97%
rename from third_party/gsutil/20110627/boto/boto/mturk/question.py
rename to third_party/gsutil/boto/boto/mturk/question.py
index 7509be8c244b7a9a8cda166c4cabbbe3c07a7d50..3e9271e817c31ad68f01e478edb9546ac918549f 100644
--- a/third_party/gsutil/20110627/boto/boto/mturk/question.py
+++ b/third_party/gsutil/boto/boto/mturk/question.py
@@ -296,13 +296,14 @@ class FreeTextAnswer(object):
def __init__(self, default=None, constraints=None, num_lines=None):
self.default = default
- if constraints is None: constraints = Constraints()
- self.constraints = Constraints(constraints)
+ if constraints is None:
+ self.constraints = Constraints()
+ else:
+ self.constraints = Constraints(constraints)
self.num_lines = num_lines
def get_as_xml(self):
- constraints = Constraints()
- items = [constraints]
+ items = [self.constraints]
if self.default:
items.append(SimpleField('DefaultText', self.default))
if self.num_lines:
@@ -311,7 +312,7 @@ class FreeTextAnswer(object):
return self.template % vars()
class FileUploadAnswer(object):
- template = """<FileUploadAnswer><MinFileSizeInBytes>%(min_bytes)d</MinFileSizeInBytes><MaxFileSizeInBytes>%(max_bytes)d</MaxFileSizeInBytes></FileUploadAnswer>"""
+ template = """<FileUploadAnswer><MaxFileSizeInBytes>%(max_bytes)d</MaxFileSizeInBytes><MinFileSizeInBytes>%(min_bytes)d</MinFileSizeInBytes></FileUploadAnswer>"""
def __init__(self, min_bytes, max_bytes):
assert 0 <= min_bytes <= max_bytes <= 2*10**9
« no previous file with comments | « third_party/gsutil/boto/boto/mturk/qualification.py ('k') | third_party/gsutil/boto/boto/plugin.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698