1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

switch to tuple since stdlib_pkgs is a default value

This commit is contained in:
Xavier Fernandez 2015-10-09 23:10:52 +02:00
parent 67674e26d3
commit ceb79a6315
2 changed files with 3 additions and 4 deletions

View file

@ -138,9 +138,9 @@ def expanduser(path):
# dist.location (py27:`sysconfig.get_paths()['stdlib']`,
# py26:sysconfig.get_config_vars('LIBDEST')), but fear platform variation may
# make this ineffective, so hard-coding
stdlib_pkgs = ['python', 'wsgiref']
stdlib_pkgs = ('python', 'wsgiref')
if sys.version_info >= (2, 7):
stdlib_pkgs.extend(['argparse'])
stdlib_pkgs += ('argparse',)
# windows detection, covers cpython and ironpython

View file

@ -12,8 +12,7 @@ from pip._vendor import pkg_resources
logger = logging.getLogger(__name__)
# packages to exclude from freeze output
freeze_excludes = stdlib_pkgs + ['setuptools', 'pip', 'distribute', 'wheel']
freeze_excludes = stdlib_pkgs + ('setuptools', 'pip', 'distribute', 'wheel')
def freeze(