fix code to work with bzip files
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 7 Feb 2017 02:25:17 +0000 (18:25 -0800)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 7 Feb 2017 02:25:17 +0000 (18:25 -0800)
wikiq

diff --git a/wikiq b/wikiq
index b11f3a480e5c3d7c74b48aaabf1c40b822b79094..c2ac412b1b776da978c8bb2ed7cc69c6868cbbac 100755 (executable)
--- 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):
     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
 
     try:
         input_file = Popen(cmd, stdout=PIPE).stdout

Community Data Science Collective || Want to submit a patch?