Skip to content

Commit

Permalink
fix tab-space indent error
Browse files Browse the repository at this point in the history
  • Loading branch information
malvikasharan committed Aug 11, 2020
1 parent 15d1a78 commit 12e2dca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/lorem-ipsums.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def check_changed_files(pr_num, bad_phrase=BAD_PHRASE):
failed = []

for filename in filenames:
try:
try:
with open(
os.path.join(ABSOLUTE_HERE, filename), encoding="utf8", errors="ignore"
) as f:
Expand Down
20 changes: 10 additions & 10 deletions tests/no-bad-latin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ def read_and_check_files(files):
try:
with open(os.path.join(ABSOLUTE_HERE, filename), encoding="utf8", errors="ignore") as f:
text = f.read()
text = remove_comments(text)

for latin_type in bad_latin:
if latin_type in text.lower():
lines = get_lines(text.lower(), latin_type)
for line in lines:
failing_files[os.path.abspath(filename)] = {
"latin_type": latin_type,
"line": line,
}
text = remove_comments(text)

for latin_type in bad_latin:
if latin_type in text.lower():
lines = get_lines(text.lower(), latin_type)
for line in lines:
failing_files[os.path.abspath(filename)] = {
"latin_type": latin_type,
"line": line,
}
except FileNotFoundError:
pass

Expand Down

0 comments on commit 12e2dca

Please sign in to comment.