From 3f1dad2b43a4f4702a1a474765851abff4d41cfc Mon Sep 17 00:00:00 2001 From: yrriban Date: Sun, 15 Jun 2025 01:12:52 -0400 Subject: [PATCH] PEP 8 compliance. --- dcc/eureka.py | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/dcc/eureka.py b/dcc/eureka.py index 4c86af0..ed049e3 100644 --- a/dcc/eureka.py +++ b/dcc/eureka.py @@ -2,18 +2,27 @@ import dcc.doom_base import dcc.config import subprocess -class Eureka(dcc.doom_base.WadMap): - def take_action(self, parsed_args): - iwad = self.iwad_path(parsed_args.wad) - pwadpath = self.pwads.joinpath(parsed_args.wad) - mw = list(pwadpath.glob('*{}*.wad'.format(parsed_args.wad), case_sensitive=False)) - if len(mw) != 1: - raise Exception("Unable to guess at main pwad for wad {}.".format(parsed_args.wad)) - complevel = self.complevel() - port = "vanilla" - if complevel == "9": - port = "boom" - if complevel == "11" or complevel == "21": - port = "mbf" - subprocess.run(["eureka"] + ["-iwad", iwad] + ["-w", parsed_args.map] + ["-p", port] + [mw[0]]) +class Eureka(dcc.doom_base.WadMap): + def take_action(self, parsed_args): + iwad = self.iwad_path(parsed_args.wad) + pwadpath = self.pwads.joinpath(parsed_args.wad) + mw = list(pwadpath.glob( + '*{}*.wad'.format(parsed_args.wad), case_sensitive=False + )) + if len(mw) != 1: + raise Exception( + f"Unable to guess at main pwad for wad {parsed_args.wad}." + ) + + complevel = self.complevel() + port = "vanilla" + if complevel == "9": + port = "boom" + if complevel == "11" or complevel == "21": + port = "mbf" + + subprocess.run( + ["eureka"] + ["-iwad", iwad] + ["-w", parsed_args.map] + + ["-p", port] + [mw[0]] + )