Author oulenz
Recipients agnosticdev, oulenz
Date 2018-03-30.17:26:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522430786.72.0.467229070634.issue33181@psf.upfronthosting.co.za>
In-reply-to
Content
In fact, since we use os.path.join, we could remove that condition altogether:

if os.path.isdir(path):
    for index in "index.html", "index.htm":
        index = os.path.join(path, index)
        if os.path.exists(index):
            path = index
            break
History
Date User Action Args
2018-03-30 17:26:26oulenzsetrecipients: + oulenz, agnosticdev
2018-03-30 17:26:26oulenzsetmessageid: <1522430786.72.0.467229070634.issue33181@psf.upfronthosting.co.za>
2018-03-30 17:26:26oulenzlinkissue33181 messages
2018-03-30 17:26:26oulenzcreate