Message384569
❯ py -c "from pathlib import Path; Path('http://w.org').exists()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python39\lib\pathlib.py", line 1407, in exists
self.stat()
File "C:\Python39\lib\pathlib.py", line 1221, in stat
return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'http:\\w.org'
The above code returns correctly False on UNIX systems. |
|
Date |
User |
Action |
Args |
2021-01-07 09:23:21 | gaborjbernat | set | recipients:
+ gaborjbernat, paul.moore, tim.golden, zach.ware, steve.dower |
2021-01-07 09:23:21 | gaborjbernat | set | messageid: <1610011401.69.0.814272139734.issue42855@roundup.psfhosted.org> |
2021-01-07 09:23:21 | gaborjbernat | link | issue42855 messages |
2021-01-07 09:23:21 | gaborjbernat | create | |
|