From ceb79a631544443c0773dd830353303580b1fed4 Mon Sep 17 00:00:00 2001 From: Xavier Fernandez Date: Fri, 9 Oct 2015 23:10:52 +0200 Subject: [PATCH] switch to tuple since stdlib_pkgs is a default value --- pip/compat/__init__.py | 4 ++-- pip/operations/freeze.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pip/compat/__init__.py b/pip/compat/__init__.py index 3b01763b3..b49c67f19 100644 --- a/pip/compat/__init__.py +++ b/pip/compat/__init__.py @@ -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 diff --git a/pip/operations/freeze.py b/pip/operations/freeze.py index 1de500f02..3807041a5 100644 --- a/pip/operations/freeze.py +++ b/pip/operations/freeze.py @@ -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(