Skip to content

Commit 2e93cbd

Browse files
committed
[LNT] add __pycache__ to ignored files
Fixes WARNING: ignoring item '__pycache__' ... warnings Differential Revision: https://reviews.llvm.org/D94775
1 parent 0982122 commit 2e93cbd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lnt/server/db/migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _load_migrations():
6868
for item in os.listdir(schema_migrations_path):
6969
# Ignore certain known non-scripts.
7070
if item in ('README.txt', '__init__.py', 'new_suite.py',
71-
'util.py') or item.endswith('.pyc'):
71+
'util.py', '__pycache__') or item.endswith('.pyc'):
7272
continue
7373

7474
# Ignore non-matching files.

lnt/server/db/rules_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def load_rules():
2727
rules_path = os.path.join(os.path.dirname(__file__), 'rules')
2828
for item in os.listdir(rules_path):
2929
# Ignore certain known non-scripts.
30-
if item in ('README.txt', '__init__.py') or item.endswith('.pyc'):
30+
if item in ('README.txt', '__init__.py',
31+
'__pycache__') or item.endswith('.pyc'):
3132
continue
3233

3334
# Ignore non-matching files.

0 commit comments

Comments
 (0)