Skip to content

Commit f03d664

Browse files
committed
minor fixes
1 parent 50f1c36 commit f03d664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

venvipy/venvi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def init_ui(self):
453453

454454
# check if any Python is installed
455455
if os.path.exists(get_data.DB_FILE):
456-
with open(get_data.DB_FILE, "r") as f:
456+
with open(get_data.DB_FILE, "r", encoding="utf-8") as f:
457457
lines = f.readlines()
458458
if len(lines) < 2:
459459
self.launching_without_python()
@@ -516,7 +516,7 @@ def pop_interpreter_table(self):
516516
"""
517517
get_data.ensure_dbfile()
518518

519-
with open(get_data.DB_FILE, newline="") as cf:
519+
with open(get_data.DB_FILE, newline="", encoding="utf-8") as cf:
520520
reader = csv.DictReader(cf, delimiter=",")
521521
self.model_interpreter_table.setRowCount(0)
522522
for info in reader:
@@ -590,7 +590,7 @@ def select_active_dir(self):
590590

591591
if active_dir != "":
592592
if os.path.exists(active_file):
593-
with open(active_file, "w") as f:
593+
with open(active_file, "w", encoding="utf-8") as f:
594594
f.write(active_dir)
595595
self.pop_venv_table()
596596
self.update_label()

0 commit comments

Comments
 (0)