mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Stop using pytype.pytd.typeshed.get_python_major_versions. (#5941)
We deleted this method as part of our Python 2 cleanup efforts.
This commit is contained in:
@@ -132,15 +132,9 @@ def determine_files_to_test(*, typeshed_location: str, paths: Sequence[str]) ->
|
||||
files = []
|
||||
for f in sorted(filenames):
|
||||
rel = _get_relative(f)
|
||||
if rel in skipped:
|
||||
if rel in skipped or "@python2" in f:
|
||||
continue
|
||||
versions = ts.get_python_major_versions(rel)
|
||||
if 3 in versions:
|
||||
files.append(f)
|
||||
elif versions:
|
||||
print("Skipping Python 2-only path: {}".format(f))
|
||||
else:
|
||||
print("Unrecognized path: {}".format(f))
|
||||
files.append(f)
|
||||
return files
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user