# HG changeset patch # User Jeff Hammel # Date 1395624470 25200 # Node ID be33152d7d0c9dcbdf6db5016ff995a9d9d9c687 # Parent 55b34a5a2e5fab67a7786b7d05f379ab5fd58fb2 STUB: makeitso/file2template.py diff -r 55b34a5a2e5f -r be33152d7d0c makeitso/file2template.py --- a/makeitso/file2template.py Sun Mar 23 16:31:37 2014 -0700 +++ b/makeitso/file2template.py Sun Mar 23 18:27:50 2014 -0700 @@ -51,7 +51,7 @@ self.add_argument('variables', nargs='*', help="variables to use") self.add_argument('-o', '--output', dest='output', - type=argparse.FileType('r'), default=sys.stdout, + type=argparse.FileType('w'), default=sys.stdout, help="output file, or stdout if ommitted'")