This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mimetypes.py uses posixpath not os.path
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum
Priority: normal Keywords:

Created on 2001-03-29 18:50 by anonymous, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (2)
msg4119 - (view) Author: Nobody/Anonymous (nobody) Date: 2001-03-29 18:50
The mimetypes.py module imports posixpath instead of 
os.path.  There's nothing special from posixpath that 
it's using - only three calls to splitext, which 
should have the same implementation in all of the 
platform-specific path modules.

This was noted when using Gordon McMillan's installer, 
which normally excludes posixpath since it's creating 
Win32 executables that should be using ntpath.
msg4120 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-04-10 15:48
Logged In: YES 
user_id=6380

Actually, the use of posixpath is intentional. The
splitext() function only looks at the extension after the
last pathname delimiter, and for URLs, we should always use
the Unix style pathname delimiters.

It's very clear that the argument to guesstype should be a
URL, not a filename in local filesystem syntax.

So, closing as Invalid.
History
Date User Action Args
2022-04-10 16:03:54adminsetgithub: 34253
2001-03-29 18:50:07anonymouscreate