summaryrefslogtreecommitdiff
path: root/validation/validlib/spc300.py
diff options
context:
space:
mode:
authorJean-Philippe NOEL2013-02-19 14:10:47 +0100
committerJean-Philippe NOEL2013-02-21 11:59:53 +0100
commit6171ba9c9246680c1122037f67f36ae53c8647a1 (patch)
treec5d301bef74f955e1810eb4783a6361baec7eff3 /validation/validlib/spc300.py
parent5815c4f057cce14a47064fc9129888a40de602e5 (diff)
validation/validlib: move spc300.unzip to rst_utils, closes #3777
Diffstat (limited to 'validation/validlib/spc300.py')
-rw-r--r--validation/validlib/spc300.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/validation/validlib/spc300.py b/validation/validlib/spc300.py
index 06040c693c..a185c9406c 100644
--- a/validation/validlib/spc300.py
+++ b/validation/validlib/spc300.py
@@ -2,7 +2,6 @@
"""Module allowing to command and control the plug SPC300"""
-import gzip
import tarfile
import tempfile
import shutil
@@ -344,7 +343,7 @@ def dump_trace(key, dest_directory, ftp_server, interface_index = 0):
# Remove the old traces files, if any
for file_name in os.listdir(dest_directory):
if os.path.splitext(file_name) == os.path.splitext(trace_pattern):
- os.remove(os.path.join(dest_directory, file_name)
+ os.remove(os.path.join(dest_directory, file_name))
# Copy the new traces files
for file_name in files_names:
@@ -398,12 +397,6 @@ def slow_ping(key, interface_index):
n = n + 1
return (result, n)
-def unzip(zip_file_path):
- zip_file_handler = gzip.open(zip_file_path, 'rb')
- zip_file_content = zip_file_handler.read()
- zip_file_handler.close()
- return zip_file_content
-
def untar(tar_file_path, destination_directory):
assert tarfile.is_tarfile(tar_file_path)
tar_file_content = tarfile.open(tar_file_path)