diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-05-11 14:30:39 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-06-02 11:18:47 +0200 |
| commit | ffacbbece6af0f84d4bc7c8c4365797e8a433ef7 (patch) | |
| tree | 57ad32954b0e3903b3c9472090f2f414efd8dfc5 /scripts/print_facts.py | |
| parent | f2ebd50f099af160bc39584afa95f812215630d1 (diff) | |
| download | allocbench-ffacbbece6af0f84d4bc7c8c4365797e8a433ef7.tar.gz allocbench-ffacbbece6af0f84d4bc7c8c4365797e8a433ef7.zip | |
format the source code using yapf
Diffstat (limited to 'scripts/print_facts.py')
| -rwxr-xr-x | scripts/print_facts.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/print_facts.py b/scripts/print_facts.py index 389028e..ec9404c 100755 --- a/scripts/print_facts.py +++ b/scripts/print_facts.py @@ -16,7 +16,6 @@ # # You should have received a copy of the GNU General Public License # along with allocbench. If not, see <http://www.gnu.org/licenses/>. - """Print facts about an allocbench result directory""" import argparse @@ -25,7 +24,8 @@ import inspect import os import sys -CURRENTDIR = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) +CURRENTDIR = os.path.dirname( + os.path.abspath(inspect.getfile(inspect.currentframe()))) PARENTDIR = os.path.dirname(CURRENTDIR) sys.path.insert(0, PARENTDIR) @@ -36,7 +36,8 @@ from allocbench.util import print_error def main(): - parser = argparse.ArgumentParser(description="Print facts about an allocbench result directory") + parser = argparse.ArgumentParser( + description="Print facts about an allocbench result directory") parser.add_argument("results", help="path to allocbench results", type=str) args = parser.parse_args() @@ -49,7 +50,8 @@ def main(): os.chdir(args.results) for benchmark in BENCHMARKS: - bench_module = importlib.import_module(f"allocbench.benchmarks.{benchmark}") + bench_module = importlib.import_module( + f"allocbench.benchmarks.{benchmark}") if not hasattr(bench_module, benchmark): print_error(f"{benchmark} has no member {benchmark}") |
