Fix utf-8 decoding error in file_is_overwritable of create_manpage_completions.py

This commit is contained in:
Andreas Wagner 2016-05-29 16:13:13 -04:00 committed by Kurtis Rader
parent bfb5fec330
commit 3d19b549c8

View File

@ -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()