Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarge committed Nov 18, 2024
1 parent b6b22ce commit 7a16390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def get_corefile_location(executable_name: str, pid: int) -> os.PathLike[str]:
with open("/proc/sys/kernel/core_pattern") as f:
core_pattern = f.read()
assert "%e" and "%p" in core_pattern
assert "%e" in core_pattern and "%p" in core_pattern
return core_pattern.replace("%e", executable_name).replace("%p", str(pid)).strip()

BUFFER_SIZE = 64
Expand Down

0 comments on commit 7a16390

Please sign in to comment.