]> granicus.if.org Git - python/commit
Fix a few problems with the _Printer class and the license variable.
authorGuido van Rossum <guido@python.org>
Tue, 3 Oct 2000 17:11:37 +0000 (17:11 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 3 Oct 2000 17:11:37 +0000 (17:11 +0000)
commitf19a7ac220178bbe6bfdf88561dea355392aec24
tree40c378ecb4fc165518e8012b02438a1df6f6e014
parent12e1595e2820a1f6651cbd2cf938ce31d9e3ea84
Fix a few problems with the _Printer class and the license variable.

1. repr(license) will no longer print to stdout and read from stdin;
you have to use license().  `license` is a short message explaining
this.

2. Use lazy initialization so that startup isn't slowed down by the
search for the LICENSE file.

3. repr(license) actually returns the desired string, rather than
printing to stdout and returning ''.  (Why didn't we think of this
before?)

4. Use the pythonlabs license URL as the license fallback instead of
the CNRI license handle.
Lib/site.py