Message6457

Author Chow
Recipients Chow
Date 2011-03-25.06:50:47
SpamBayes Score 0.016479455
Marked as misclassified No
Message-id <1301035848.66.0.50386205277.issue1724@psf.upfronthosting.co.za>
In-reply-to
Content
def join(a, *p):
    """Join two or more pathname components, inserting '/' as needed"""
    path = a
    for b in p:
        if b is None:            <<<<<<< below two lines is added by me
            return path
        if b.startswith('/'):
            path = b
        elif path == '' or path.endswith('/'):
            path +=  b
        else:
            path += '/' + b
    return path
History
Date User Action Args
2011-03-25 06:50:48Chowsetrecipients: + Chow
2011-03-25 06:50:48Chowsetmessageid: <1301035848.66.0.50386205277.issue1724@psf.upfronthosting.co.za>
2011-03-25 06:50:48Chowlinkissue1724 messages
2011-03-25 06:50:47Chowcreate