Message217077
>>> import ntpath
>>> ntpath.splitdrive(None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\python3\lib\ntpath.py", line 159, in splitdrive
if p and len(p) > 1:
TypeError: object of type 'NoneType' has no len()
Solution: (that I've found)
Lib/ntpath.py
#in function splitdrive
...
empty = _get_empty(p)
+++ if p and len(p) > 1:
--- if len(p) > 1:
sep = _get_sep(p)
...
return p[:2], p[2:]
+++ else:
+++ p = ''
return empty, p
... |
|
Date |
User |
Action |
Args |
2014-04-23 16:57:20 | bpqpng | set | recipients:
+ bpqpng |
2014-04-23 16:57:20 | bpqpng | set | messageid: <1398272240.06.0.678669968331.issue21336@psf.upfronthosting.co.za> |
2014-04-23 16:57:20 | bpqpng | link | issue21336 messages |
2014-04-23 16:57:19 | bpqpng | create | |
|