Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce65ab9

Browse files
committed
r -> rt
1 parent 84e2187 commit ce65ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appendix_argparse/cat_n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_args():
1414

1515
parser.add_argument('file',
1616
metavar='FILE',
17-
type=argparse.FileType('r'),
17+
type=argparse.FileType('rt'),
1818
help='Input file')
1919

2020
return parser.parse_args()

0 commit comments

Comments
 (0)