diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbinline.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py b/lldb/packages/Python/lldbsuite/test/lldbinline.py index c01fef00fe4..4c3b08bf1d0 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbinline.py +++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py @@ -5,6 +5,7 @@ from __future__ import absolute_import import os # Third-party modules +import io # LLDB modules import lldb @@ -13,7 +14,6 @@ from . import configuration from . import lldbutil from .decorators import * - def source_type(filename): _, extension = os.path.splitext(filename) return { @@ -45,7 +45,7 @@ class CommandParser: def parse_source_files(self, source_files): for source_file in source_files: - file_handle = open(source_file) + file_handle = io.open(source_file, encoding='utf-8') lines = file_handle.readlines() line_number = 0 # non-NULL means we're looking through whitespace to find |