Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

support for reading json data from stdin

  • Loading branch information...
commit 4381727492f24f0e59ccc4131a3ee1c1acbcb3fd 1 parent 53be910
fracai fracai authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 dropship
5 dropship
@@ -50,7 +50,10 @@ if __name__ == '__main__':
50 50 else:
51 51 path = None
52 52
53   - f = open(infile, 'r')
  53 + if infile == '-':
  54 + f = sys.stdin
  55 + else:
  56 + f = open(infile, 'r')
54 57 try:
55 58 indata = json.load(f)
56 59 except ValueError,e:

0 comments on commit 4381727

Please sign in to comment.
Something went wrong with that request. Please try again.