mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 05:34:51 +08:00
Ignore some slow files for the fuzzer
This commit is contained in:
@@ -50,6 +50,11 @@ def find_python_files_in_tree(file_path):
|
|||||||
yield file_path
|
yield file_path
|
||||||
return
|
return
|
||||||
for root, dirnames, filenames in os.walk(file_path):
|
for root, dirnames, filenames in os.walk(file_path):
|
||||||
|
if 'chardet' in root:
|
||||||
|
# Stuff like chardet/langcyrillicmodel.py is just very slow to
|
||||||
|
# parse and machine generated, so ignore those.
|
||||||
|
continue
|
||||||
|
|
||||||
for name in filenames:
|
for name in filenames:
|
||||||
if name.endswith('.py'):
|
if name.endswith('.py'):
|
||||||
yield os.path.join(root, name)
|
yield os.path.join(root, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user