From ea162539566c0d2d2ce2af66c643ecf13c613715 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 2 Nov 2005 23:00:23 +0000 Subject: Add an import to a code fragment. Backport of fix for bug #1346395. --- Doc/dist/dist.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12