Show More
@@ -8,9 +8,11 b' Test EOL extension' | |||||
8 | Set up helpers |
|
8 | Set up helpers | |
9 |
|
9 | |||
10 | $ cat > switch-eol.py <<EOF |
|
10 | $ cat > switch-eol.py <<EOF | |
|
11 | > from __future__ import absolute_import | |||
|
12 | > import os | |||
11 | > import sys |
|
13 | > import sys | |
12 | > try: |
|
14 | > try: | |
13 |
> import |
|
15 | > import msvcrt | |
14 | > msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) |
|
16 | > msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) | |
15 | > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
|
17 | > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) | |
16 | > except ImportError: |
|
18 | > except ImportError: |
General Comments 0
You need to be logged in to leave comments.
Login now