From: Benjamin Mako Hill Date: Tue, 7 Feb 2017 02:25:17 +0000 (-0800) Subject: fix code to work with bzip files X-Git-Url: https://code.communitydata.science/mediawiki_dump_tools.git/commitdiff_plain/5d7dceb9e4040feef8d2854c2b338a11166f2d81 fix code to work with bzip files --- diff --git a/wikiq b/wikiq index b11f3a4..c2ac412 100755 --- a/wikiq +++ b/wikiq @@ -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