From 95c90ae15f919a346ab5d8b5d60860e0c125e824 Mon Sep 17 00:00:00 2001 From: rocky4570fft Date: Fri, 7 Oct 2016 00:50:33 +1000 Subject: [PATCH] attmpt 6 is it the print statements or unicode? --- moto/awslambda/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index 684f1a24..e857bd5c 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -107,8 +107,8 @@ class LambdaFunction(object): def _invoke_lambda(self, code, event={}, context={}): # TO DO: context not yet implemented - mycode = "\n".join([self.code, 'print lambda_handler(%s, %s)' % (event, context)]) - #print "moto_lambda_debug: ", mycode + mycode = "\n".join([self.code, 'print(lambda_handler(%s, %s))' % (event, context)]) + print("moto_lambda_debug: ", mycode) try: codeOut = StringIO()