Oliver Urs Lenz <oliver.urs.l...@gmail.com> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to