add tests for wikipedia, malformed xml, bzip2, correct bz2 bug in wikiq.
This commit is contained in:
2
wikiq
2
wikiq
@@ -277,7 +277,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", "-dk", input_filename]
|
||||
|
||||
try:
|
||||
input_file = Popen(cmd, stdout=PIPE).stdout
|
||||
|
||||
Reference in New Issue
Block a user