]> granicus.if.org Git - python/commit
Issue #25318: Avoid sprintf() in backslashreplace()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Oct 2015 01:17:30 +0000 (03:17 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Oct 2015 01:17:30 +0000 (03:17 +0200)
commit797485e10135ca323565b22b4fabf1e161a5ec7a
treefb439a51835b26a3c5bf7c066d74e7a75ac83b10
parentb13b97d3b881daaab8f3bf32cc851eac9b895c52
Issue #25318: Avoid sprintf() in backslashreplace()

Rewrite backslashreplace() to be closer to PyCodec_BackslashReplaceErrors().

Add also unit tests for non-BMP characters.
Lib/test/test_codecs.py
Objects/unicodeobject.c