From c2971871dd1380b88d58f29211a3e8478aca477a Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Mon, 12 Oct 2015 07:15:54 +0100 Subject: Add Pylint to VSPERF commit gate Initial pylint config file has been created to follow current code structure and design. A few issues have been fixed, so currently 56 of 67 files have rating 10/10. There are still issues to be fixed, mainly TODOs/FIXMEs and missing impelentation of abstract class members. Change-Id: Icf5b12c2150258f8ac657f8d50b47a697d1660a0 JIRA: VSPERF-91 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Fatih Degirmenci Reviewed-by: Gene Snider Reviewed-by: Al Morton Reviewed-by: Tv Rao Reviewed-by: Brian Castelli --- core/traffic_controller_rfc2544.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/traffic_controller_rfc2544.py') diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py index 5659569f..de45de92 100644 --- a/core/traffic_controller_rfc2544.py +++ b/core/traffic_controller_rfc2544.py @@ -48,8 +48,7 @@ class TrafficControllerRFC2544(ITrafficController, IResults): self._packet_sizes = None packet_sizes_cli = get_test_param('pkt_sizes') if packet_sizes_cli: - self._packet_sizes = [int(x.strip()) - for x in packet_sizes_cli.split(',')] + self._packet_sizes = [int(x.strip()) for x in packet_sizes_cli.split(',')] else: self._packet_sizes = settings.getValue('TRAFFICGEN_PKT_SIZES') -- cgit 1.2.3-korg