X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/blobdiff_plain/aa84a7df032dcb20bb284892f12cdac4853f31aa..4ced659d1961630c20a1ef817422f242f723af7f:/helper.py?ds=inline diff --git a/helper.py b/helper.py index b401cad..af87f71 100644 --- a/helper.py +++ b/helper.py @@ -40,6 +40,8 @@ def open_input_file(input_filename): cmd = ["xzcat",'-dk', '-T 20',input_filename] elif re.match(r'.*\.zst',input_filename): cmd = ['zstd','-dck', input_filename] + elif re.match(r'.*\.gz',input_filename): + cmd = ['gzip','-dc', input_filename] try: input_file = Popen(cmd, stdout=PIPE).stdout except NameError as e: