Blacken the code base.
This commit is contained in:
parent
d585c1529d
commit
07d079f204
19 changed files with 138 additions and 168 deletions
11
dcc/dsda.py
11
dcc/dsda.py
|
|
@ -22,10 +22,9 @@ class DSDA(dcc.doom_base.WadMap):
|
|||
if shutil.which("xvfb-run") is not None:
|
||||
command = ["xvfb-run"] + command
|
||||
subprocess.run(
|
||||
command + self.dsda_preamble(warp=False) + [
|
||||
"-fastdemo", dip, "-nosound",
|
||||
"-skiptic", "-1", "-export_text_file"
|
||||
]
|
||||
command
|
||||
+ self.dsda_preamble(warp=False)
|
||||
+ ["-fastdemo", dip, "-nosound", "-skiptic", "-1", "-export_text_file"]
|
||||
)
|
||||
editor = "nano"
|
||||
if "EDITOR" in os.environ:
|
||||
|
|
@ -38,7 +37,7 @@ class DSDA(dcc.doom_base.WadMap):
|
|||
else:
|
||||
fh1 = self.wad[0:2] + self.map
|
||||
if parsed_args.single:
|
||||
fh1 = self.wad[0:min(len(self.wad), 4)]
|
||||
fh1 = self.wad[0 : min(len(self.wad), 4)]
|
||||
fh2 = ""
|
||||
with open(dtp, mode="r") as f:
|
||||
for line in f:
|
||||
|
|
@ -46,7 +45,7 @@ class DSDA(dcc.doom_base.WadMap):
|
|||
m = re.search("[^0-9]*([0-9]*):([0-9]*).[0-9]*", line)
|
||||
if m is None:
|
||||
continue
|
||||
fh2 = m[1]+m[2]
|
||||
fh2 = m[1] + m[2]
|
||||
if len(fh2) % 2 == 1:
|
||||
fh2 = "0" + fh2
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue