]> code.communitydata.science - mediawiki_dump_tools.git/blobdiff - wikiq
fix code to work with bzip files
[mediawiki_dump_tools.git] / 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):
-        cmd = ["zcat", input_filename] 
+        cmd = ["bzcat", input_filename] 
 
     try:
         input_file = Popen(cmd, stdout=PIPE).stdout

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