The git-p4.py script currently implements code-paths for both Python 2 and 3. Python 2 was discontinued in 2020, and there is no longer any officially supported interpreter. Further development of git-p4.py will require would-be developers to test their changes with all supported dialects of the language. However, if there is no longer any supported runtime environment available, this places an unreasonable burden on the Git project to maintain support for an obselete dialect of the language. This patch-set removes all Python 2-specific code-paths, and then applies some simplifications to the code which are available given Python 3's improve delineation between bytes and strings. Joel Holdsworth (6): git-p4: Always pass cmd arguments to subprocess as a python lists git-p4: Don't print shell commands as python lists git-p4: Removed support for Python 2 git-p4: Decode byte strings before printing git-p4: Eliminate decode_stream and encode_stream git-p4: Resolve RCS keywords in binary git-p4.py | 319 +++++++++++++++++++++--------------------------------- 1 file changed, 123 insertions(+), 196 deletions(-) -- 2.33.0