Mercurial > cpython-lru_cache-weakref
annotate Lib/distutils/debug.py @ 39042:c02fa187e0f4 legacy-trunk
Part of SF patch #1484695. This removes dead code. The chksum was
already verified in .frombuf() on the lines above. If there was
a problem an exception is raised, so there was no way this condition
could have been true.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 10 Jul 2006 00:23:17 +0000 |
| parents | 893d46576737 |
| children | a6d3930b5613 |
| rev | line source |
|---|---|
|
25210
76768adb6f23
Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
1 import os |
|
76768adb6f23
Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
2 |
|
33965
893d46576737
Update compatibility comments to 2.1, corresponding to PEP 291 1.13.
Martin v. Löwis <martin@v.loewis.de>
parents:
32736
diff
changeset
|
3 # This module should be kept compatible with Python 2.1. |
|
26285
42bfc98d295b
Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents:
25210
diff
changeset
|
4 |
|
42bfc98d295b
Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents:
25210
diff
changeset
|
5 __revision__ = "$Id$" |
|
42bfc98d295b
Add comment to Distutil files about requiring 1.5.2 compatibility, as
Andrew M. Kuchling <amk@amk.ca>
parents:
25210
diff
changeset
|
6 |
|
25210
76768adb6f23
Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
7 # If DISTUTILS_DEBUG is anything other than the empty string, we run in |
|
76768adb6f23
Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
8 # debug mode. |
|
76768adb6f23
Define DEBUG in a separate module to resolve circular references.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
9 DEBUG = os.environ.get('DISTUTILS_DEBUG') |
