From 7d0722bc1850e47cc8d83aa21450aa142fbb683e Mon Sep 17 00:00:00 2001 From: Marc Joliet Date: Wed, 25 Sep 2013 01:35:32 +0200 Subject: [PATCH] Change an "if" to more appropriate "elif" I overlooked an "if" that should have been an "elif". Oops. --- share/tools/create_manpage_completions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index b568a97d2..b5ff43d23 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -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')