This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antony.Lee
Recipients Antony.Lee, ethan.furman, pitrou, r.david.murray, serhiy.storchaka
Date 2016-05-31.18:46:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
First, I doubt that this optimization actually changes anything measurable, but if you want you can always replace that line by "if part.startswith(sep)" (also solving the original issue).

Additionally, note that `parse_parts` (the only function to call `splitroot` already (and redundantly) checks that `part` is truthy before calling `splitroot`.  There are a couple of other "optimizations" in the same function (`if x and x != '.'`, `if rel and rel != '.'`) for which I'd be surprised if they truly mattered.
Date User Action Args
2016-05-31 18:46:51Antony.Leesetrecipients: + Antony.Lee, pitrou, r.david.murray, ethan.furman, serhiy.storchaka
2016-05-31 18:46:51Antony.Leesetmessageid: <>
2016-05-31 18:46:50Antony.Leelinkissue27161 messages
2016-05-31 18:46:50Antony.Leecreate