commit | e888cdc68346ee34698121e23a03e85a3de902aa | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Aug 17 14:50:24 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Aug 17 14:50:24 2002 +0000 |
tree | 6f7f8598510a1d8f78dbb3e4e2e1d46155b5676c | |
parent | 787410680b9866d56a1ec1915ebbf41ab5cac7a0 [diff] |
Get rid of _once(); inlining it takes less code. :-) Also, don't call gettempdir() in the default expression for the 'dir' argument to various functions; use 'dir=None' for the default and insert 'if dir is None: dir = gettemptir()' in the bodies. That way the work done by gettempdir is postponed until needed.