Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 201941 Details for
Bug 282318
non-existent/poor handling of NoneType objects in python-2.6 os.path.join()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
os.path.join() patch
python-2.6-posixpath-2.patch (text/plain), 558 bytes, created by
Brian Dolbec (RETIRED)
on 2009-08-22 16:41:43 UTC
(
hide
)
Description:
os.path.join() patch
Filename:
MIME Type:
Creator:
Brian Dolbec (RETIRED)
Created:
2009-08-22 16:41:43 UTC
Size:
558 bytes
patch
obsolete
>--- /root/posixpath.py 2009-08-22 09:05:09.000000000 -0700 >+++ /usr/lib64/python2.6/posixpath.py 2009-08-22 09:19:58.000000000 -0700 >@@ -60,8 +60,13 @@ > """Join two or more pathname components, inserting '/' as needed. > If any component is an absolute path, all previous path components > will be discarded.""" >- path = a >+ if a: >+ path = a >+ else: >+ path = '' > for b in p: >+ if b == None: >+ continue > if b.startswith('/'): > path = b > elif path == '' or path.endswith('/'):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282318
:
201940
| 201941