Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Syntax error fix for #1054 and related PEP8 adjustments. #1062

Closed
wants to merge 1 commit into from

2 participants

@oozie

This is a fix for a syntax error spotted by @hmslydia in #1054

@garnaat
Owner

Well, crap. I just posted a fix for this, too. Please review my commit and see if it needs any adjustment. Sorry, we should try to coordinate a bit better, I guess 8^)

@garnaat
Owner

BTW, if you are actively using mturk, I would be happy to rely on you as much as you want to help coordinate mturk changes. I'm not using the service at the moment and I would much prefer the changes be driven by actual service users.

@oozie

No worries, your commit looks good. Unfortunately, I'm not a power mturk user (I'm based out of Europe so my HIT posting capabilities are subject to limitations).

@oozie oozie closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 15, 2012
  1. @oozie

    Syntax error fix for #1054 and related PEP8 adjustments.

    oozie authored pingwin committed
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 boto/mturk/question.py
View
8 boto/mturk/question.py
@@ -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()
Something went wrong with that request. Please try again.