From 6a61f1beab227b1cfe7fa18f0c214a08929ac2a4 Mon Sep 17 00:00:00 2001 From: Sebastien Besson Date: Thu, 11 Dec 2014 11:05:25 +0000 Subject: [PATCH] Flake8 lib/ --- lib/composite.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/composite.py b/lib/composite.py index 37fc25a8a18..842a3bd9f86 100644 --- a/lib/composite.py +++ b/lib/composite.py @@ -17,17 +17,15 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import time -import sys import re import os -from getopt import getopt, GetoptError from glob import glob from zipfile import ZipFile @@ -47,6 +45,7 @@ IGNORE = [] + def find(pattern): """Grabs platform specific distribution targets from target""" target = os.path.join(os.path.dirname(os.path.dirname(__file__)), "target") @@ -55,6 +54,7 @@ def find(pattern): raise Exception("Nothing found! %s" % pattern) return artifacts + def extract(artifact, target, ignore): """ Extracts all files of a given artifact to a target directory filtering and @@ -100,6 +100,7 @@ def extract(artifact, target, ignore): finally: zip_file.close() + def compress(target, base): """Creates a ZIP recursively from a given base directory.""" zip_file = ZipFile(target, 'w') @@ -155,4 +156,3 @@ def compress(target, base): compress('%s.zip' % target, target) # Insight no longer uses omero_client.jar -