Message266767
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:51 | Antony.Lee | set | recipients:
+ Antony.Lee, pitrou, r.david.murray, ethan.furman, serhiy.storchaka |
2016-05-31 18:46:51 | Antony.Lee | set | messageid: <1464720411.01.0.98390298035.issue27161@psf.upfronthosting.co.za> |
2016-05-31 18:46:50 | Antony.Lee | link | issue27161 messages |
2016-05-31 18:46:50 | Antony.Lee | create | |
|