build: use python3 to lint (#33627)

This commit is contained in:
Jeremy Rose 2022-04-11 16:05:21 -07:00 committed by GitHub
parent caddc83cfe
commit c9fd255093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 60 deletions

View file

@ -41,7 +41,7 @@ def getBrokenLinks(filepath):
brokenLinks = []
try:
f = open(filepath, 'r')
f = open(filepath, 'r', encoding="utf-8")
lines = f.readlines()
except KeyboardInterrupt:
print('Keyboard interruption while parsing. Please try again.')
@ -77,7 +77,7 @@ def getBrokenLinks(filepath):
tempFile = os.path.join(currentDir, sections[0])
if os.path.isfile(tempFile):
try:
newFile = open(tempFile, 'r')
newFile = open(tempFile, 'r', encoding="utf-8")
newLines = newFile.readlines()
except KeyboardInterrupt:
print('Keyboard interruption while parsing. Please try again.')