mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 15:37:59 +08:00
Fix utf-8 decoding error in file_is_overwritable of create_manpage_completions.py
This commit is contained in:
parent
bfb5fec330
commit
3d19b549c8
|
@ -664,7 +664,7 @@ class TypeDeroffManParser(ManParser):
|
|||
# Raises IOError if it cannot be opened
|
||||
def file_is_overwritable(path):
|
||||
result = False
|
||||
file = open(path, 'r')
|
||||
file = codecs.open(path, "r", encoding="utf-8")
|
||||
for line in file:
|
||||
# Skip leading empty lines
|
||||
line = line.strip()
|
||||
|
|
Loading…
Reference in New Issue
Block a user