Skip to content

Commit

Permalink
fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne committed Mar 15, 2021
1 parent 2d0ac71 commit 918981a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SearchAccountPayee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions autom_transaction_gutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import sublime_plugin

import re
import threading

from . import utils
from. import ledger_regex
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 918981a

Please sign in to comment.