]> granicus.if.org Git - python/commit
Cleanup unicodeobject.c
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Dec 2012 08:30:24 +0000 (09:30 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Dec 2012 08:30:24 +0000 (09:30 +0100)
commit8dbd421b4d48d31891d159d8c581ea7c0b15226d
tree6c204ad876aa635f413b8856ce91bcbc8e89a201
parentd45c7f8d74d30de0a558b10e04541b861428b7c1
Cleanup unicodeobject.c

 * Remove micro-optization:
   (errors == "surrogateescape" || strcmp(errors, "surrogateescape") == 0).
   Only use strcmp()
 * Initialize 'arg' members in unicode_format_arg() to help the compiler to
   diagnose real bugs and also make the code simpler to read
Objects/unicodeobject.c