dmwm / WMCore

Core workflow management components for CMS.
Apache License 2.0
46 stars 107 forks source link

[py2py3] Remove strings-related temporary workarounds, those needed only for py2py3 dual stack #10322

Open mapellidario opened 3 years ago

mapellidario commented 3 years ago

Impact of the new feature WMCore in general

Is your feature request related to a problem? Please describe.

When we switch to python 3, we can remove some of the compatibility code that is in place to make sure that dmwm/WMCore works in py2/py3 dual stack. We focus this issue on deprecating management of strings.

Describe the solution you'd like

Describe alternatives you've considered We can leave it as it is, but we should really consider removing temporary workarounds :)

amaltaro commented 3 years ago

@mapellidario just to make sure I understood what is expected from this issue. Is it supposed to happen only when WMCore is no longer supporting python2?

mapellidario commented 3 years ago

Well, eventually we changed the code in all of those places:

Maybe we can change this issue in: "Change encodeUnicodeToBytesConditional(query, condition=PY3) to encodeUnicodeToBytes(query) after dropping support to py2", or something like that.

In any case you are correct, this issue was about cleaning up a bit our code after we drop support to py2