Merge in master.
This commit is contained in:
commit
3b4ef2cf15
26 changed files with 565 additions and 65 deletions
|
|
@ -139,6 +139,8 @@ class LambdaFunction(object):
|
|||
print("Exception %s", ex)
|
||||
|
||||
try:
|
||||
original_stdout = sys.stdout
|
||||
original_stderr = sys.stderr
|
||||
codeOut = StringIO()
|
||||
codeErr = StringIO()
|
||||
sys.stdout = codeOut
|
||||
|
|
@ -154,8 +156,8 @@ class LambdaFunction(object):
|
|||
finally:
|
||||
codeErr.close()
|
||||
codeOut.close()
|
||||
sys.stdout = sys.__stdout__
|
||||
sys.stderr = sys.__stderr__
|
||||
sys.stdout = original_stdout
|
||||
sys.stderr = original_stderr
|
||||
return self.convert(result)
|
||||
|
||||
def invoke(self, body, request_headers, response_headers):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue