Eryk Sun <eryk...@gmail.com> added the comment:

I'm attaching a rewrite of splitdrive() from msg352355. This version uses an 
internal _next() function to get the indices of the next path component, 
ignoring repeated separators. It also flattens the nested structure of the 
previous implementation by adding multiple return statements.

----------
Added file: https://bugs.python.org/file49541/splitdrive.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37609>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to