]> granicus.if.org Git - python/commit
Writer APIs: use empty string singletons
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 12 Oct 2015 11:29:43 +0000 (13:29 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 12 Oct 2015 11:29:43 +0000 (13:29 +0200)
commit6c2cdae9e6b664a0b3e204773aeb8954ae1508e1
tree9827e325a16cfaa1002a63f53bbacf6888d0489b
parentc29e29bed1ea1efc1a0cd3178fac96be4d763ecf
Writer APIs: use empty string singletons

Modify _PyBytesWriter_Finish() and _PyUnicodeWriter_Finish() to return the
empty bytes/Unicode string if the string is empty.
Objects/bytesobject.c
Objects/unicodeobject.c