You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is originating from behavior from pathlib that I would call surprising
In [6]: importpathlibIn [7]: pathlib.Path("a").partsOut[7]: ('a',)
In [8]: pathlib.Path("a.").partsOut[8]: ('a.',)
In [9]: pathlib.Path(".a").partsOut[9]: ('.a',)
In [10]: pathlib.Path(".").partsOut[10]: ()
In [11]: pathlib.Path("./").partsOut[11]: ()
In [12]: pathlib.Path("././").partsOut[12]: ()
In [13]: pathlib.Path("..").partsOut[13]: ('..',)
I would not have expected pathlib.Path(".").parts to return an empty tuple, and this is the root of the problem.
Describe the bug
ValueError
is raised when sorting current directory'.'
or'./'
or'.\\'
.Expected behavior
The current directory should be sorted correctly without error.
Environment (please complete the following information):
LOCALE
orhumansorted
:PyICU
installed? NoTo Reproduce
The text was updated successfully, but these errors were encountered: