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

Utils: Encode str to bytes in Executor.run #421

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

Conversation

0
Copy link
Contributor

@0 0 commented Feb 21, 2021

This is the input complement to the output decoding added in 2cb245f4eb.

In Admin.py, some output is passed back in as input, which causes a crash in Python 3 without this change.

Somewhat related (and possibly controversial) thoughts: The codebase is getting rather hairy due to having support for both modern and ancient versions of Python. How likely is it that a distribution will include a 2021+ version of bcfg2, but not have a version of Python 3 from at least 2017? Would it be reasonable to drop the 1.4 release entirely, and instead focus on a hypothetical 2.0 with support only for Python 3.6+, or something along those lines? I understand the desire to keep compatibility with existing software, and the amount of work put into bcfg2 towards this goal is commendable. It would certainly be a shame to discard it all, but does it still provide enough benefit to justify the added maintenance burden?

This is the input complement to the output decoding added in 2cb245f.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant