Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tools: check-imports using utf-8
  • Loading branch information
cclauss committed Nov 2, 2019
commit 2fdab320d051f65fa8b4d185f72f680cf63f12e5
3 changes: 2 additions & 1 deletion tools/check-imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import print_function
import glob
import io
import re
import sys

Expand All @@ -15,7 +16,7 @@ def do_exist(file_name, lines, imported):


def is_valid(file_name):
with open(file_name) as source_file:
with io.open(file_name, encoding='utf-8') as source_file:
lines = [line.strip() for line in source_file]

usings, importeds, line_numbers, valid = [], [], [], True
Expand Down