]> granicus.if.org Git - python/commit
Fix _PyUnicode_XStrip()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 9 Apr 2013 20:19:21 +0000 (22:19 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 9 Apr 2013 20:19:21 +0000 (22:19 +0200)
commitb3a601450416be068933e237506767e6b150a4a1
treeb81bfc902df8a68cc30790148ba9f3b7bc64e7f4
parent63d5c1a14a644a794bff8d7f9ebc789a85925def
Fix _PyUnicode_XStrip()

Inline the BLOOM_MEMBER() to only call PyUnicode_READ() only once (per loop
iteration). Store also the length of the seperator in a variable to avoid calls
to PyUnicode_GET_LENGTH().
Objects/unicodeobject.c