Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 317 Bytes
from __future__ import print_function
import os.path
def handler(event, context):
if os.path.isfile("/tmp/perf.txt"):
return "reused"
else:
try:
with open("/tmp/perf.txt", "w") as out:
print("Hallo", file=out)
except:
pass
return "new"