~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to file-tools/cat-to.py

ivle.webapp.base.rest#JSONRESTView: Check for bad JSON input, rather than
    crashing!
ivle.webapp.base.test.test_rest: Test responses to invalid POST, PATCH and
    PUT inputs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
 
import sys
4
 
 
5
 
if __name__ == "__main__":
6
 
    out = open(sys.argv[1], "wb")
7
 
    out.write(sys.stdin.read())
8
 
    out.close()