mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 02:54:11 +08: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
@ -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…
x
Reference in New Issue
Block a user