Permalink
Browse files

Syntax error fix for #1054 and related PEP8 adjustments.

  • Loading branch information...
1 parent 9a18660 commit bb3db2f0ac0d20bf28cb7018edad8bfa832fb66e @oozie oozie committed with pingwin Oct 15, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 boto/mturk/question.py
View
@@ -29,7 +29,7 @@ def __init__(self, identifier, content, answer_spec,
del self.self
def get_as_params(self, label='Question'):
- return { label : self.get_as_xml() }
+ return {label: self.get_as_xml()}
def get_as_xml(self):
items = [
@@ -70,7 +70,7 @@ def __init__(self, external_url, frame_height):
self.frame_height = frame_height
def get_as_params(self, label='ExternalQuestion'):
- return { label : self.get_as_xml() }
+ return {label: self.get_as_xml()}
def get_as_xml(self):
return self.template % vars(self)
@@ -136,7 +136,7 @@ def __init__(self, html_form, frame_height):
self.frame_height = frame_height
def get_as_params(self, label="HTMLQuestion"):
- return {label, self.get_as_xml()}
+ return {label: self.get_as_xml()}
def get_as_xml(self):
return self.template % vars(self)
@@ -181,7 +181,7 @@ class Overview(OrderedContent):
template = '<Overview>%(content)s</Overview>'
def get_as_params(self, label='Overview'):
- return { label : self.get_as_xml() }
+ return {label: self.get_as_xml()}
def get_as_xml(self):
content = super(Overview, self).get_as_xml()

0 comments on commit bb3db2f

Please sign in to comment.