You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by no...@apache.org on 2017/02/09 01:32:27 UTC
[trafficserver] branch master updated: Backport unused dependency
check to Python 2.6
This is an automated email from the ASF dual-hosted git repository.
nottheoilrig pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 89f35c7 Backport unused dependency check to Python 2.6
89f35c7 is described below
commit 89f35c78f52cf579bb1c78bc5b4dbb480b557223
Author: Jack Bates <ja...@nottheoilrig.com>
AuthorDate: Wed Feb 8 11:16:01 2017 -0700
Backport unused dependency check to Python 2.6
We support CentOS 6, which comes with Python 2.6.
Set literals were introduced in Python 2.7.
---
tools/check-unused-dependencies | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/check-unused-dependencies b/tools/check-unused-dependencies
index a7908d0..d44eeda 100755
--- a/tools/check-unused-dependencies
+++ b/tools/check-unused-dependencies
@@ -78,11 +78,11 @@ for filename in subprocess.Popen(args, stdout=subprocess.PIPE).stdout:
contents = open(filename).read()
contents = contents.replace('\\\n', '')
for prefix, programs in programs_re.findall(contents):
- if prefix not in {
+ if prefix not in [
'EXTRA_',
'check_',
'noinst_',
- }:
+ ]:
for program in programs.split():
program = os.path.join(os.path.dirname(filename), program)
if os.path.exists(program):
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].