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