From 076b7325a88f7f779fd4f900a1b8d0214c7e062d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 2 Nov 2005 22:58:12 +0000 Subject: [PATCH] Add an import line to a code fragment. Closes 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 26bfa2fa87d..d6ddad8e4b2 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