diff --git a/SearchAccountPayee.py b/SearchAccountPayee.py index a75742d..00a0f08 100644 --- a/SearchAccountPayee.py +++ b/SearchAccountPayee.py @@ -32,7 +32,7 @@ def get_info(filename, search_key): # if isinstance(search_key, str): # search_key = [search_key] - with open(filename) as file: + with open(filename, encoding="utf-8") as file: content = file.read() result = re.findall(r'^{} (.+)$'.format(search_key), content, re.M) diff --git a/autom_transaction_gutter.py b/autom_transaction_gutter.py index 20222bb..ff2bfab 100644 --- a/autom_transaction_gutter.py +++ b/autom_transaction_gutter.py @@ -12,7 +12,6 @@ import sublime_plugin import re -import threading from . import utils from. import ledger_regex @@ -550,7 +549,7 @@ def get_automatic_transactions(filename): The automatic transactions defined in the file. """ # Read file content - with open(filename) as file: + with open(filename, encoding="utf-8") as file: content = file.read() # Find all autom. transactions