Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e2187 commit ce65ab9Copy full SHA for ce65ab9
appendix_argparse/cat_n.py
@@ -14,7 +14,7 @@ def get_args():
14
15
parser.add_argument('file',
16
metavar='FILE',
17
- type=argparse.FileType('r'),
+ type=argparse.FileType('rt'),
18
help='Input file')
19
20
return parser.parse_args()
0 commit comments