Brett Cannon added the comment: Unfortunately you can't simply remove that directory check because you don't want to blindly normalize case. If someone put some token value on sys.path for their use that was case-sensitive even on a case-insensitive OS then the proposed change would break those semantics (e.g. if someone put a URL in sys.path for a REST-based importer).
The possibilities I see are: 1. Don't change anything; duplicate entries don't really hurt anything 2. Remove duplicate entries, but only normalize case for directories 3. Remove duplicate entries, but normalize case for anything that points to something on the filesystem (i.e. both directories and files) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26587> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com