File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1208,13 +1208,12 @@ def succ(a):
12081208 help = '''Bindings to be set in the template's execution context''' )
12091209
12101210 parser .add_argument (
1211- 'file' , type = argparse .FileType ('rb' ),
1211+ 'file' , type = argparse .FileType (),
12121212 help = 'Path to GYB template file (defaults to stdin)' , nargs = '?' ,
1213- default = sys .stdin ) # FIXME: stdin not binary mode on Windows
1213+ default = sys .stdin )
12141214 parser .add_argument (
1215- '-o' , dest = 'target' , type = argparse .FileType ('wb' ),
1216- help = 'Output file (defaults to stdout)' ,
1217- default = sys .stdout ) # FIXME: stdout not binary mode on Windows
1215+ '-o' , dest = 'target' , type = argparse .FileType ('w' ),
1216+ help = 'Output file (defaults to stdout)' , default = sys .stdout )
12181217 parser .add_argument (
12191218 '--test' , action = 'store_true' ,
12201219 default = False , help = 'Run a self-test' )
You can’t perform that action at this time.
0 commit comments