mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Change an "if" to more appropriate "elif"
I overlooked an "if" that should have been an "elif". Oops.
This commit is contained in:
parent
4340368277
commit
7d0722bc18
1 changed files with 1 additions and 1 deletions
|
@ -722,7 +722,7 @@ def parse_manpage_at_path(manpage_path, output_directory):
|
|||
fd = gzip.open(manpage_path, 'r')
|
||||
manpage = fd.read()
|
||||
if IS_PY3: manpage = manpage.decode('latin-1')
|
||||
if manpage_path.endswith('.bz2'):
|
||||
elif manpage_path.endswith('.bz2'):
|
||||
fd = bz2.BZ2File(manpage_path, 'r')
|
||||
manpage = fd.read()
|
||||
if IS_PY3: manpage = manpage.decode('latin-1')
|
||||
|
|
Loading…
Reference in a new issue