tests/seq.py
changeset 35150 08b8b56bd2e8
parent 28722 2cd8c3b0bd11
child 40773 0605726179a0
equal deleted inserted replaced
35149:e6487522ef92 35150:08b8b56bd2e8
     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 from __future__ import absolute_import, print_function
    10 from __future__ import absolute_import, print_function
    11 import sys
    11 import sys
       
    12 
       
    13 if sys.version_info[0] >= 3:
       
    14     xrange = range
    12 
    15 
    13 start = 1
    16 start = 1
    14 if len(sys.argv) > 2:
    17 if len(sys.argv) > 2:
    15     start = int(sys.argv[1])
    18     start = int(sys.argv[1])
    16 
    19