From 536ea4d94246fc2a7eccdb33096d7351e1768415 Mon Sep 17 00:00:00 2001 From: jacky06 Date: Tue, 12 May 2020 00:12:47 +0800 Subject: [PATCH] Remove the unused coding style modules Python modules related to coding style checks (listed in blacklist.txt in openstack/requirements repo) are dropped from lower-constraints.txt as they are not actually used in tests (other than pep8). more info: https://github.com/openstack/requirements/blob/master/blacklist.txt Change-Id: Ia68dd55193f7357916be40054f793dc2078a5d8b --- lower-constraints.txt | 5 ----- zunclient/common/cliutils.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index 3ede2c8e..6c7a8083 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -25,13 +25,11 @@ eventlet==0.18.2 extras==1.0.0 fasteners==0.7.0 fixtures==3.0.0 -flake8==2.5.5 future==0.16.0 futurist==1.2.0 gitdb==0.6.4 GitPython==1.0.1 greenlet==0.4.10 -hacking==0.12.0 idna==2.6 iso8601==0.1.12 Jinja2==2.10 @@ -43,7 +41,6 @@ keystoneauth1==3.4.0 kombu==4.0.0 linecache2==1.0.0 MarkupSafe==1.0 -mccabe==0.2.1 mock==2.0.0 monotonic==1.4 mox3==0.20.0 @@ -74,14 +71,12 @@ paramiko==2.0.0 Paste==2.0.2 PasteDeploy==1.5.0 pbr==2.0.0 -pep8==1.5.7 pika==0.10.0 pika-pool==0.1.3 positional==1.2.1 prettytable==0.7.1 pyasn1==0.1.8 pycparser==2.18 -pyflakes==0.8.1 pyinotify==0.9.6 pyOpenSSL==17.5.0 pyparsing==2.2.0 diff --git a/zunclient/common/cliutils.py b/zunclient/common/cliutils.py index 399cb228..699a9cd4 100644 --- a/zunclient/common/cliutils.py +++ b/zunclient/common/cliutils.py @@ -308,8 +308,8 @@ def get_service_type(f): return getattr(f, 'service_type', None) -def pretty_choice_list(l): - return ', '.join("'%s'" % i for i in l) +def pretty_choice_list(cl): + return ', '.join("'%s'" % i for i in cl) def exit(msg=''):