commit | 170e190f261b1c86bd9ab6d0a3ab253a8319c1c6 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jan 29 22:03:51 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jan 29 22:03:51 1999 +0000 |
tree | 60f96ccf8abb51bc115d782ef5f883818537e18a | |
parent | f761287e0aaa282c564ca15fde56e5d8e9af8f29 [diff] |
Support a canonical() method, implementable by a derived class, to be applied to all filenames before they are compared, looked up in the breaks dictionary, etc. The default implementation does nothing -- it's implented as fast as possible via str(). A useful implementation would make everything a absolute, e.g. return os.path.normcase( os.path.abspath(filename)).