Show More
@@ -7,17 +7,15 | |||
|
7 | 7 | # seq START STOP [START, STOP] stepping by 1 |
|
8 | 8 | # seq START STEP STOP [START, STOP] stepping by STEP |
|
9 | 9 | |
|
10 |
import o |
|
|
10 | import io | |
|
11 | 11 | import sys |
|
12 | 12 | |
|
13 | try: | |
|
14 | import msvcrt | |
|
15 | ||
|
16 | msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) | |
|
17 | msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) | |
|
18 | msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) | |
|
19 | except ImportError: | |
|
20 | pass | |
|
13 | sys.stdout = io.TextIOWrapper( | |
|
14 | sys.stdout.buffer, | |
|
15 | sys.stdout.encoding, | |
|
16 | sys.stdout.errors, | |
|
17 | newline="\n", | |
|
18 | ) | |
|
21 | 19 | |
|
22 | 20 | start = 1 |
|
23 | 21 | if len(sys.argv) > 2: |
General Comments 0
You need to be logged in to leave comments.
Login now