Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task/internal/__init__.py: Revisit core program extraction regex #2026

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

badone
Copy link
Contributor

@badone badone commented Feb 18, 2025

@@ -334,7 +334,7 @@ def fetch_binaries_for_coredumps(path, remote):
log.error(e)
continue
try:
dump_program = re.findall("from '([^']+)'", dump_out)[0]
dump_program = re.findall("from '([^ ']+)", dump_out)[0]
Copy link
Contributor

@kshtsk kshtsk Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or it is just missed .split()[0] at the end, however, for better readability maybe elaborate the code, like:

dump_command = re.findall("from '([^']+)", dump_out)[0]
dump_program = dump_command.split()[0]

If you like you could apply, however, I don't mind to merge it right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants