make pytype aware that 2.7/ has been renamed to 2/ (#729)

This commit is contained in:
Matthias Kramm
2016-12-02 06:10:14 -08:00
committed by GitHub
parent 8e1cad6837
commit a2559eeaeb
2 changed files with 6 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
# Pytype blacklist. Files will not be tested with pytype.
stdlib/2.7/__builtin__.pyi
stdlib/2.7/builtins.pyi
stdlib/2.7/types.pyi
stdlib/2.7/typing.pyi
stdlib/2/__builtin__.pyi
stdlib/2/builtins.pyi
stdlib/2/types.pyi
stdlib/2/typing.pyi
stdlib/2and3/webbrowser.pyi
# Because of 'from . import path':
stdlib/2.7/os/__init__.pyi
stdlib/2/os/__init__.pyi
stdlib/3/os/__init__.pyi

View File

@@ -70,7 +70,7 @@ def pytype_test(args):
print("Cannot run pytd. Did you install pytype?")
return 0, 0
wanted = re.compile(r"stdlib/(2\.7|2and3)/.*\.pyi$")
wanted = re.compile(r"stdlib/(2|2\.7|2and3)/.*\.pyi$")
skipped = re.compile("(%s)$" % "|".join(load_blacklist()))
files = []