Show More
@@ -8,8 +8,17 b'' | |||||
8 | # seq START STEP STOP [START, STOP] stepping by STEP |
|
8 | # seq START STEP STOP [START, STOP] stepping by STEP | |
9 |
|
9 | |||
10 | from __future__ import absolute_import, print_function |
|
10 | from __future__ import absolute_import, print_function | |
|
11 | import os | |||
11 | import sys |
|
12 | import sys | |
12 |
|
13 | |||
|
14 | try: | |||
|
15 | import msvcrt | |||
|
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 | |||
|
21 | ||||
13 | if sys.version_info[0] >= 3: |
|
22 | if sys.version_info[0] >= 3: | |
14 | xrange = range |
|
23 | xrange = range | |
15 |
|
24 |
General Comments 0
You need to be logged in to leave comments.
Login now