Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants