Skip to content

Commit 6adc3e6

Browse files
authored
Merge pull request #30358 from brentdax/gyblets
Partially revert "Keep gyb from messing up line endings on Windows"
2 parents f1ccb39 + dab60f0 commit 6adc3e6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

utils/gyb.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)