Antony Lee added the comment:

Actually, a simpler approach may be the attached patch 
(pathlib-splitroot.patch), in which case the exception is

    AttributeError: 'dict' object has no attribute 'lstrip'

which is pretty commonly seen when a wrong type is passed to a function.

(Note that it is already possible to trigger this exception by passing in `{0: 
"/"}` so it's no worse than before)

----------
keywords: +patch
Added file: http://bugs.python.org/file43064/pathlib-splitroot.patch

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

Reply via email to