summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-11-02 23:00:23 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-11-02 23:00:23 (GMT)
commitea162539566c0d2d2ce2af66c643ecf13c613715 (patch)
treeb01f2f7042ee005d26962703dd77d32cda02ade2 /Doc
parent64597d00ae45eb5de405d20251c3d9d01970b1d0 (diff)
downloadcpython-ea162539566c0d2d2ce2af66c643ecf13c613715.zip
cpython-ea162539566c0d2d2ce2af66c643ecf13c613715.tar.gz
cpython-ea162539566c0d2d2ce2af66c643ecf13c613715.tar.bz2
Add an import to a code fragment.
Backport of fix for bug #1346395.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/dist/dist.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/dist/dist.tex b/Doc/dist/dist.tex
index 88ee42c..85bc688 100644
--- a/Doc/dist/dist.tex
+++ b/Doc/dist/dist.tex
@@ -845,7 +845,8 @@ before the \function{setup()} call.
\begin{verbatim}
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
-if sys.version < '2.2.3':
+from sys import version
+if version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None