fix code to work with bzip files

This commit is contained in:
Benjamin Mako Hill 2017-02-06 18:25:17 -08:00
parent 7d8ec932dd
commit 5d7dceb9e4

2
wikiq
View File

@ -269,7 +269,7 @@ def open_input_file(input_filename):
elif re.match(r'.*\.gz', input_filename):
cmd = ["zcat", input_filename]
elif re.match(r'.*\.bz2', input_filename):
cmd = ["zcat", input_filename]
cmd = ["bzcat", input_filename]
try:
input_file = Popen(cmd, stdout=PIPE).stdout