Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
melund committed Dec 8, 2021
1 parent 386e4c8 commit 042bc45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions anypytools/abcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,14 @@ def execute_anybodycon(
str(debug_mode),
"/ni",
]
proc = Popen(cmd, env=env, cwd=folder, close_fds=False, stdout=logfile, stderr=logfile)
proc = Popen(
cmd,
env=env,
cwd=folder,
close_fds=False,
stdout=logfile,
stderr=logfile,
)
else:
# ON Linux/Wine we use a bat file to redirect the output into a file on wine/windows
# side. This prevents a bug with AnyBody starts it's builtin python.
Expand All @@ -257,7 +264,7 @@ def execute_anybodycon(
batfile.write_text(anybodycmd)
macrofile_cleanup.append(batfile)

cmd = ["wine", "cmd", "/c", str(batfile)+r"& exit /b %ERRORLEVEL%"]
cmd = ["wine", "cmd", "/c", str(batfile) + r"& exit /b %ERRORLEVEL%"]
proc = Popen(
cmd,
env=env,
Expand Down
3 changes: 1 addition & 2 deletions anypytools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,15 +727,14 @@ def to_dataframe(
return dfout


def _recursive_replace(iterable: Iterable, old:Any, new:Any):
def _recursive_replace(iterable: Iterable, old: Any, new: Any):
for i, elem in enumerate(iterable):
if isinstance(elem, list):
_recursive_replace(elem, old, new)
elif elem == old:
iterable[i] = new



TRIPEL_QUOTE_WRAP = re.compile(r'([^\[\]",\s]+)')


Expand Down

0 comments on commit 042bc45

Please sign in to comment.