Add an import line to a code fragment.

Closes bug #1346395.
This commit is contained in:
Brett Cannon 2005-11-02 22:58:12 +00:00
parent 8294de5673
commit 076b7325a8
1 changed files with 2 additions and 1 deletions

3
Doc/dist/dist.tex vendored
View File

@ -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