Change an "if" to more appropriate "elif"

I overlooked an "if" that should have been an "elif". Oops.
This commit is contained in:
Marc Joliet 2013-09-25 01:35:32 +02:00
parent 4340368277
commit 7d0722bc18

View file

@ -722,7 +722,7 @@ def parse_manpage_at_path(manpage_path, output_directory):
fd = gzip.open(manpage_path, 'r') fd = gzip.open(manpage_path, 'r')
manpage = fd.read() manpage = fd.read()
if IS_PY3: manpage = manpage.decode('latin-1') if IS_PY3: manpage = manpage.decode('latin-1')
if manpage_path.endswith('.bz2'): elif manpage_path.endswith('.bz2'):
fd = bz2.BZ2File(manpage_path, 'r') fd = bz2.BZ2File(manpage_path, 'r')
manpage = fd.read() manpage = fd.read()
if IS_PY3: manpage = manpage.decode('latin-1') if IS_PY3: manpage = manpage.decode('latin-1')