On Fri, Sep 24, 2010 at 6:38 AM, brian.curtin <python-check...@python.org> wrote: > Modified: python/branches/py3k/Lib/ntpath.py > ============================================================================== > --- python/branches/py3k/Lib/ntpath.py (original) > +++ python/branches/py3k/Lib/ntpath.py Thu Sep 23 22:38:14 2010 > @@ -641,24 +641,29 @@ > > > # determine if two files are in fact the same file > +try: > + from nt import _getfinalpathname > +except (NotImplementedError, ImportError): > + # On Windows XP and earlier, two files are the same if their absolute > + # pathnames are the same. > + # Also, on other operating systems, fake this method with a > + # Windows-XP approximation. > + def _getfinalpathname(f): > + return abspath(f)
This only needs to catch ImportError now. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com