commit | 744c34e2ea91ba8f9e945bbeba121c7e95063056 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri May 20 11:36:13 2016 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Fri May 20 11:36:13 2016 +0200 |
tree | c828f0158fb77d05421f074ef31af98dd29f179c | |
parent | 03e6061956d10586b70eb78f3d76ce0952ee5bd8 [diff] |
Cleanup import.c * Replace PyUnicode_RPartition() with PyUnicode_FindChar() and PyUnicode_Substring() to avoid the creation of a temporary tuple. * Use PyUnicode_FromFormat() to build a string and avoid the single_dot ('.') singleton Thanks Serhiy Storchaka for your review.