Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fac273a

Browse files
authored
Stop using pytype.pytd.typeshed.get_python_major_versions. (#5941)
We deleted this method as part of our Python 2 cleanup efforts.
1 parent c54909a commit fac273a

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/pytype_test.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,9 @@ def determine_files_to_test(*, typeshed_location: str, paths: Sequence[str]) ->
132132
files = []
133133
for f in sorted(filenames):
134134
rel = _get_relative(f)
135-
if rel in skipped:
135+
if rel in skipped or "@python2" in f:
136136
continue
137-
versions = ts.get_python_major_versions(rel)
138-
if 3 in versions:
139-
files.append(f)
140-
elif versions:
141-
print("Skipping Python 2-only path: {}".format(f))
142-
else:
143-
print("Unrecognized path: {}".format(f))
137+
files.append(f)
144138
return files
145139

146140

0 commit comments

Comments
 (0)