@@ -130,8 +130,8 @@ def verify_aws_login(self):
130130 print exception .error_message
131131 return False
132132 except AttributeError :
133- print "*** Unable to establish connection to AWS region %s \
134- using your access key/secret key" , self .region
133+ print "*** Unable to establish connection to AWS region %s " \
134+ " using your access key/secret key" , self .region
135135 return False
136136 except boto .exception .BotoServerError :
137137 print "***********************************************************"
@@ -151,8 +151,8 @@ def verify_aws_login(self):
151151 def connect_to_aws_rds (self ):
152152 ''' Connec to aws rds '''
153153 if not self .valid_login :
154- print 'Sorry, unable to connect to Amazon\' s RDS database server. \
155- AWS credentials invalid.'
154+ print 'Sorry, unable to connect to Amazon\' s RDS database server. " \
155+ " AWS credentials invalid.'
156156 return False
157157 # rdsparams = dict(
158158 # aws_access_key_id = self.aws_access_key_id,
@@ -307,8 +307,8 @@ def __init__(self, aws_access_key_id, aws_secret_access_key, is_sandbox):
307307 if not self .valid_login :
308308 print 'WARNING *****************************'
309309 print 'Sorry, AWS Credentials invalid.\n You will only be able to ' \
310- + 'test experiments locally until you enter\n valid ' \
311- + 'credentials in the AWS Access section of ~/.psiturkconfig\n '
310+ 'test experiments locally until you enter\n valid ' \
311+ 'credentials in the AWS Access section of ~/.psiturkconfig\n '
312312
313313 def update_credentials (self , aws_access_key_id , aws_secret_access_key ):
314314 ''' Update credentials '''
@@ -482,8 +482,8 @@ def verify_aws_login(self):
482482 def connect_to_turk (self ):
483483 ''' Connect to turk '''
484484 if not self .valid_login :
485- print 'Sorry, unable to connect to Amazon Mechanical Turk. AWS \
486- credentials invalid.'
485+ print 'Sorry, unable to connect to Amazon Mechanical Turk. AWS ' \
486+ ' credentials invalid.'
487487 return False
488488 if self .is_sandbox :
489489 host = 'mechanicalturk.sandbox.amazonaws.com'
@@ -571,8 +571,8 @@ def dispose_hit(self, hitid):
571571 try :
572572 self .mtc .dispose_hit (hitid )
573573 except Exception , e :
574- print 'Failed to dispose of HIT %s. Make sure there are no \
575- assignments remaining to be reviewed' % hitid
574+ print 'Failed to dispose of HIT %s. Make sure there are no " \
575+ " assignments remaining to be reviewed' % hitid
576576
577577 def extend_hit (self , hitid , assignments_increment = None ,
578578 expiration_increment = None ):
0 commit comments