We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02cfcc9 commit c8116adCopy full SHA for c8116ad
tests/mysqld.py
@@ -571,8 +571,12 @@ def bootstrap(self):
571
for filename in script_files:
572
full_path = os.path.join(self._scriptdir, filename)
573
LOGGER.debug("Reading SQL from '%s'", full_path)
574
- with open(full_path, 'r') as fp:
575
- sql.extend([line.strip() for line in fp.readlines()])
+ if sys.version_info[0] == 2:
+ with open(full_path, 'r') as fp:
576
+ sql.extend([line.strip() for line in fp.readlines()])
577
+ else:
578
+ with open(full_path, 'r', encoding="utf-8") as fp:
579
580
581
fp_log = open(bootstrap_log, 'w')
582
if self._version[0:2] < (8, 0) or self._version < (5, 7, 21):
0 commit comments