Jonathan Eldridge added the comment:

Seems like you could also narrow the case where the incorrect behavior occurs 
for files without an extension by doing a os.path.isfile check as well--that 
will only return True for cases where the file exists, but then  relpath could 
work correctly for all existing files and all files that have an extension.

----------

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

Reply via email to