Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix: Compatibility issues for Python 2 runs #140

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

ggonzr
Copy link
Contributor

@ggonzr ggonzr commented Jan 20, 2025

Discovered at: #138 - Details

Avoid compatibility errors with Python 2 for the open(...) function for setting the file's encoding and for string formatting too.

Sometimes in case an old architecture and cms-sw release is being used, a Python 2 interpreter is available for executing the run_the_matrix_pdmv.py module and there are compatibility issues.

Avoid compatibility errors with the `open(...)` function in Python 2 for
setting the file's encoding.

Sometimes in case an old architecture and `cms-sw` release is being
used, a Python 2 interpreter is available for executing the
`run_the_matrix_pdmv.py` module and there are compatibility issues with
the encoding argument.
@ggonzr ggonzr added the bug Something isn't working label Jan 20, 2025
@ggonzr ggonzr self-assigned this Jan 20, 2025
@ggonzr ggonzr changed the title Fix: Encode the output file properly for Python 2 runs Fix: Compatibility issues for Python 2 runs Jan 20, 2025
Remove the usage of f-strings.
@ggonzr ggonzr merged commit a0a325b into master Jan 20, 2025
1 check passed
@ggonzr ggonzr deleted the bugfix/py2-old-releases-compatibility branch January 20, 2025 16:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant