Skip to content

Commit

Permalink
support unicode file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed Jan 2, 2021
1 parent 74f551b commit ad367b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(self):
super(Search, self).__init__()

def _getFileContent(self, file_path):
if str(file_path).endswith(self.allowed_extensions):
if file_path.encode('utf-8').endswith(self.allowed_extensions):
with open(file_path, 'r') as c:
content = c.read()
else:
Expand Down
Binary file modified Notes.pyc
Binary file not shown.

0 comments on commit ad367b0

Please sign in to comment.