diff options
author | Brett Cannon <bcannon@gmail.com> | 2005-11-02 22:58:12 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2005-11-02 22:58:12 (GMT) |
commit | 076b7325a88f7f779fd4f900a1b8d0214c7e062d (patch) | |
tree | fa037454c50b4f47102d3d6fa86db258c25f7114 /Doc | |
parent | 8294de5673da003d8f83c677a5cc02676609181d (diff) | |
download | cpython-076b7325a88f7f779fd4f900a1b8d0214c7e062d.zip cpython-076b7325a88f7f779fd4f900a1b8d0214c7e062d.tar.gz cpython-076b7325a88f7f779fd4f900a1b8d0214c7e062d.tar.bz2 |
Add an import line to a code fragment.
Closes bug #1346395.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/dist/dist.tex | 3 |
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 |