chore: remove dead Python 2 compatibility code in env_vars - #9152
chore: remove dead Python 2 compatibility code in env_vars#9152Andrej730 wants to merge 1 commit into
env_vars#9152Conversation
|
Thanks for the cleanup, and apologies for the slow first response here. I checked out the branch and verified the claim that this code is unreachable. It is — this is safe to merge as-is. Minimum supported Python
The removed branch cannot execute On elif sys.version_info.major > Python.TWO:
elif not isinstance(value, unicode): # noqa: F821 pylint: disable=undefined-variable
result = str(value)
else:
result = valueWorth noting that :244 references Removing the I grepped for every consumer of this module. The only symbol any other code imports from
Nothing references Test results
On the merge state For the record, GitHub reports No changes requested from me; this just needs a maintainer approval to move. |
Hello. Removing Python 2 compatibility code that was avoiding stringifying
unicodestrings, since Python 2 was deprecated long time ago and this code is now dead.Mandatory Checklist
PRs will only be reviewed after checklist is complete
make prpassesmake update-reproducible-reqsif dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.