diff options
author | Barry Warsaw <barry@python.org> | 2003-03-07 15:39:37 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-03-07 15:39:37 (GMT) |
commit | 9f3fcd9c23be0b430e335d36ea374ce9838e390e (patch) | |
tree | 03f801e51d7b8e2a1a973ac5183b81d04f5c30a3 /.cvsignore | |
parent | c4d6bdd58a58b365556abfe60c9f5b5f73c555f8 (diff) | |
download | cpython-9f3fcd9c23be0b430e335d36ea374ce9838e390e.zip cpython-9f3fcd9c23be0b430e335d36ea374ce9838e390e.tar.gz cpython-9f3fcd9c23be0b430e335d36ea374ce9838e390e.tar.bz2 |
More internal refinements of the ascii splitting algorithm.
_encode_chunks(): Pass maxlinelen in instead of always using
self._maxlinelen, so we can adjust for shorter initial lines.
Pass this value through to _max_append().
encode(): Weave maxlinelen through to the _encode_chunks() call.
_split_ascii(): When recursively splitting a line on spaces
(i.e. lower level syntactic split), don't append the whole returned
string. Instead, split it on linejoiners and extend the lines up to
the last line (for proper packing). Calculate the linelen based on
the last element in the this list.
Diffstat (limited to '.cvsignore')
0 files changed, 0 insertions, 0 deletions