]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Cleanup import.c
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 20 May 2016 09:36:13 +0000 (11:36 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 20 May 2016 09:36:13 +0000 (11:36 +0200)
commit744c34e2ea91ba8f9e945bbeba121c7e95063056
treec828f0158fb77d05421f074ef31af98dd29f179c
parent03e6061956d10586b70eb78f3d76ce0952ee5bd8
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.
Python/import.c