|
12 | 12 |
|
13 | 13 |
|
14 | 14 | def get_versions() -> List[str]: |
| 15 | + # generates list of python versions to use. |
| 16 | + # For Python2, this is only [2.7]. |
| 17 | + # Otherwise, it is [3.x, ..., 3.1, 3.0], where x is the version |
| 18 | + # of the running interpreter. |
15 | 19 | major = sys.version_info[0] |
16 | 20 | minor = sys.version_info[1] |
17 | 21 | if major == 2: |
18 | 22 | return ['2.7'] |
19 | 23 | else: |
20 | | - # generates list of python versions to use. |
21 | | - # For Python2, this is only [2.7]. |
22 | | - # Otherwise, it is [3.4, 3.3, 3.2, 3.1, 3.0]. |
23 | 24 | return ['%d.%d' % (major, i) for i in range(minor, -1, -1)] |
24 | 25 |
|
25 | 26 |
|
@@ -175,7 +176,7 @@ def add_stubs(driver: Driver) -> None: |
175 | 176 |
|
176 | 177 | modules = {'typing'} |
177 | 178 | # TODO: This should also test Python 2, and pass pyversion accordingly. |
178 | | - for version in ["2and3", "3", "3.3", "3.4", "3.5"]: |
| 179 | + for version in ["2and3", "3", "3.5"]: |
179 | 180 | for stub_type in ['builtins', 'stdlib', 'third_party']: |
180 | 181 | stubdir = join('typeshed', stub_type, version) |
181 | 182 | for f in find_files(stubdir, suffix='.pyi'): |
|
0 commit comments