From cd74dfebfb3255d5a42e59c3bc1af3b78db463ac Mon Sep 17 00:00:00 2001 From: Alexys Jacob Date: Mon, 17 Sep 2018 17:25:20 +0200 Subject: [PATCH] scripts: coding style fixes scripts/create-relocatable-package.py:24:1: F401 'shutil' imported but unused scripts/create-relocatable-package.py:24:1: F401 'tempfile' imported but unused scripts/create-relocatable-package.py:24:16: E401 multiple imports on one line scripts/create-relocatable-package.py:26:1: E302 expected 2 blank lines, found 1 scripts/create-relocatable-package.py:47:1: E305 expected 2 blank lines after class or function definition, found 1 scripts/create-relocatable-package.py:93:6: E225 missing whitespace around operator Signed-off-by: Alexys Jacob Message-Id: <20180917152520.5032-1-ultrabug@gentoo.org> --- scripts/create-relocatable-package.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/create-relocatable-package.py b/scripts/create-relocatable-package.py index 180141ad4d..cae88a7580 100755 --- a/scripts/create-relocatable-package.py +++ b/scripts/create-relocatable-package.py @@ -21,7 +21,12 @@ # along with Scylla. If not, see . # -import argparse, tarfile, os, os.path, subprocess, shutil, tempfile, io +import argparse +import io +import os +import subprocess +import tarfile + def ldd(executable): '''Given an executable file, return a dictionary with the keys @@ -44,6 +49,7 @@ def ldd(executable): libraries[elements[0]] = os.path.realpath(elements[2]) return libraries + ap = argparse.ArgumentParser(description='Create a relocatable scylla package.') ap.add_argument('dest', help='Destination file (tar format)') @@ -90,7 +96,7 @@ ar = tarfile.open(output, mode='w') # # bin/scylla args -> libexec/scylla libexec/scylla.bin args -> lib/ld.so libexec/scylla.bin args -thunk=b'''\ +thunk = b'''\ #!/bin/bash x="$(readlink -f "$0")"