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