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):
1208
1208
help = '''Bindings to be set in the template's execution context''' )
1209
1209
1210
1210
parser .add_argument (
1211
- 'file' , type = argparse .FileType ('rb' ),
1211
+ 'file' , type = argparse .FileType (),
1212
1212
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 )
1214
1214
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 )
1218
1217
parser .add_argument (
1219
1218
'--test' , action = 'store_true' ,
1220
1219
default = False , help = 'Run a self-test' )
You can’t perform that action at this time.
0 commit comments