You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/03/02 00:28:51 UTC
[trafficserver] branch master updated: better support for python3,
and fix problem with counting white space as an output
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 310246d better support for python3, and fix problem with counting white space as an output
310246d is described below
commit 310246de4fc898f0439f7590155c02480f0d9578
Author: Fei Deng <du...@gmail.com>
AuthorDate: Thu Mar 1 16:27:55 2018 -0600
better support for python3, and fix problem with counting white space as an output
---
tools/check-unused-dependencies | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/tools/check-unused-dependencies b/tools/check-unused-dependencies
index 457fc6b..431d184 100755
--- a/tools/check-unused-dependencies
+++ b/tools/check-unused-dependencies
@@ -45,15 +45,15 @@ def get_dependencies(program):
program
]
for dependency in subprocess.Popen(args, stdout=subprocess.PIPE).stdout:
- dependency = dependency[:-1]
+ dependency = dependency.decode('utf-8')[:-1]
if any(
map(
os.path.basename(dependency).startswith,
[
- 'libdl.so.', # Because we add -ldl to LIBS
+ 'libdl.so.', # Because we add -ldl to LIBS
'libgcc_s.so.',
- 'libm.so.', # Why does Libtool call ld with -lm?
- 'libpthread.so.', # Because we add -lpthread to LIBS
+ 'libm.so.', # Why does Libtool call ld with -lm?
+ 'libpthread.so.' # Because we add -lpthread to LIBS
])):
continue
@@ -64,11 +64,12 @@ def get_dependencies(program):
os.path.basename(dependency).startswith, [
'libcrypto.so.',
'libresolv.so.',
- 'libssl.so.',
+ 'libssl.so.'
])):
continue
- yield dependency
+ if re.sub('\s+', '', dependency):
+ yield dependency
success = True
@@ -84,7 +85,7 @@ for filename in config_files.split():
if prefix not in [
'EXTRA_',
'check_',
- 'noinst_',
+ 'noinst_'
]:
for program in programs.split():
program = os.path.join(os.path.dirname(filename), program)
@@ -92,9 +93,9 @@ for filename in config_files.split():
dependencies = list(get_dependencies(program))
if len(dependencies) > 1:
success = False
- print (program)
+ print(program)
for dependency in dependencies:
- print (dependency)
+ print(dependency)
if not success:
sys.exit(1)
--
To stop receiving notification emails like this one, please contact
zwoop@apache.org.