mirror of
https://github.com/python/cpython.git
synced 2025-08-15 06:10:47 +00:00
massive import cleaning in Distutils
This commit is contained in:
parent
2421d56e02
commit
2b66da7d15
24 changed files with 97 additions and 121 deletions
|
@ -4,16 +4,17 @@ Implements the Distutils 'sdist' command (create a source distribution)."""
|
|||
|
||||
__revision__ = "$Id$"
|
||||
|
||||
import os, string
|
||||
import os
|
||||
import string
|
||||
import sys
|
||||
from types import *
|
||||
from glob import glob
|
||||
from warnings import warn
|
||||
|
||||
from distutils.core import Command
|
||||
from distutils import dir_util, dep_util, file_util, archive_util
|
||||
from distutils.text_file import TextFile
|
||||
from distutils.errors import *
|
||||
from distutils.errors import (DistutilsPlatformError, DistutilsOptionError,
|
||||
DistutilsTemplateError)
|
||||
from distutils.filelist import FileList
|
||||
from distutils import log
|
||||
from distutils.util import convert_path
|
||||
|
@ -256,7 +257,7 @@ class sdist(Command):
|
|||
|
||||
standards = [('README', 'README.txt'), self.distribution.script_name]
|
||||
for fn in standards:
|
||||
if type(fn) is TupleType:
|
||||
if isinstance(fn, tuple):
|
||||
alts = fn
|
||||
got_it = 0
|
||||
for fn in alts:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue