825ea9bfa1
If the compared text was in bytes and not actually valid text (i.e. could not be encoded to text/unicode using the default encoding) then the assertrepr would fail with an EncodingError. This ensures that the internal string is always valid unicode, converting any bytes safely to valid unicode. This is done using repr() which then needs post-processing to fix the encompassing quotes and un-escape newlines. This fixes issue 429. |
||
---|---|---|
.. | ||
__init__.py | ||
newinterpret.py | ||
oldinterpret.py | ||
reinterpret.py | ||
rewrite.py | ||
util.py |