summaryrefslogtreecommitdiffstats
path: root/Doc/dist/dist.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/dist/dist.tex')
-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 26bfa2f..d6ddad8 100644
--- a/Doc/dist/dist.tex
+++ b/Doc/dist/dist.tex
@@ -921,7 +921,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