Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2013 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5827231 to your computer and use it in GitHub Desktop.
Save anonymous/5827231 to your computer and use it in GitHub Desktop.
import json
def returner(ret):
ret_file = '~/ret_log.txt'
out = json.dumps(ret)
with open(ret_file, 'w') as f:
f.write(str(out))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment