07-disable-translate-non-printable.patch 564 B

1234567891011121314151617181920
  1. --- contrib/python/pytest/py2/_pytest/compat.py (index)
  2. +++ contrib/python/pytest/py2/_pytest/compat.py (working tree)
  3. @@ -244,7 +244,7 @@ if _PY3:
  4. ret = _bytes_to_ascii(val)
  5. else:
  6. ret = val
  7. - return _translate_non_printable(ret)
  8. + return ret
  9. else:
  10. @@ -267,7 +267,7 @@ else:
  11. ret = val.decode("utf-8", "ignore")
  12. else:
  13. ret = val.encode("utf-8", "replace").decode("utf-8")
  14. - return _translate_non_printable(ret)
  15. + return ret
  16. class _PytestWrapper(object):