diff --git a/hepdata_lib/__init__.py b/hepdata_lib/__init__.py index 8391de77..acd4030e 100644 --- a/hepdata_lib/__init__.py +++ b/hepdata_lib/__init__.py @@ -8,9 +8,9 @@ import os import shutil import subprocess +import tarfile import warnings from collections import defaultdict - import yaml # try to use LibYAML bindings if possible @@ -520,7 +520,6 @@ def create_files(self, outdir="."): self.copy_files(outdir) # Put everything into a tarfile - import tarfile tar = tarfile.open("submission.tar.gz", "w:gz") for yaml_file in helpers.find_all_matching(outdir, "*.yaml"): tar.add(yaml_file)