]> granicus.if.org Git - python/commit
Support a canonical() method, implementable by a derived class, to be
authorGuido van Rossum <guido@python.org>
Fri, 29 Jan 1999 22:03:51 +0000 (22:03 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 29 Jan 1999 22:03:51 +0000 (22:03 +0000)
commit170e190f261b1c86bd9ab6d0a3ab253a8319c1c6
tree60f96ccf8abb51bc115d782ef5f883818537e18a
parentf761287e0aaa282c564ca15fde56e5d8e9af8f29
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)).
Lib/bdb.py