~gagern/bzr/encodingSafeTests

Viewing all changes in revision 3530.

  • Committer: Martin von Gagern
  • Date: 2010-04-23 06:43:53 UTC
  • Revision ID: martin.vgagern@gmx.net-20100423064353-xttsmpw08vy395mk
Fix broken newline unescaping.

In order to show useful diffs, and readable output in general, newlines
should not be escaped.  The unescaping done before was broken if r'\n'
appeared in the input, as Andrew Bennetts reviewed.  In order to avoid using
regular expressions, we now split lines and join them after escaping.  Added
a test case as well, and a new test class for toplevel functions in tests.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: