Roundup Robot added the comment:
New changeset ad89a652b4ed by Serhiy Storchaka in branch '3.4':
Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.
https://hg.python.org/cpython/rev/ad89a652b4ed
New changeset b18ef4a3e7c1 by Serhiy Storchaka in branch 'default':
Issue #22406:
Serhiy Storchaka added the comment:
I think it is safer now just fix existing code than replace it with totally
different code with the risk of incompatibility. In any case uu_codec needs
rewriting because currently it doesn't support incremental encoding and
decoding.
Thank you for your
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22406
___
___
Changes by Martin Panter vadmium...@gmail.com:
Added file: http://bugs.python.org/file36619/uu_codec
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22406
___
Martin Panter added the comment:
Here are two patches: a test and a fix. I’m not sure if it is okay to add a
test for the “codecs” module with the tests for the “uu” module; it was easier
that way because I am basically running the same test over the two different
APIs.
--
Added
New submission from Martin Panter:
The handler for the “Trailing garbage” error for “uu-codec” uses Python 2 code,
while the copy in the uu” module has the correct Python 3 code.
Please change the line at
https://hg.python.org/cpython/file/775453a7b85d/Lib/encodings/uu_codec.py#l57
to look
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
keywords: +easy
nosy: +doerwalter, lemburg, serhiy.storchaka
priority: normal - low
stage: - needs patch
versions: +Python 3.5
___
Python tracker
Serhiy Storchaka added the comment:
Do you want to provide a patch Martin?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22406
___
___