]> granicus.if.org Git - python/commit
Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 12 Oct 2011 21:46:10 +0000 (23:46 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 12 Oct 2011 21:46:10 +0000 (23:46 +0200)
commit49a0a21f37730c66d7c3b2f79493822b065ea96b
treec4143db835e4065a6070571b751c9f8a0f648b4d
parent69f55cc03385c5d5d828bc0b24ee3f3f7d3781d6
Unicode replace() avoids calling unicode_adjust_maxchar() when it's useless

Add also a special case if the result is an empty string.
Objects/unicodeobject.c