From 885de5fc2eb12c87a3cffc97b0a28ec6d4a614fe Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 15 Jan 2016 16:55:11 +0100 Subject: [PATCH 1/1] Fix pep8 1.7.0 W503 in play.py "line break before binary operator" Change-Id: Ifdb89e06f0c0b4a146848cad6ec81f483abf33ee Signed-off-by: Vratko Polak --- tools/fastbgp/play.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/fastbgp/play.py b/tools/fastbgp/play.py index b37b5182ce..6ad79a60de 100755 --- a/tools/fastbgp/play.py +++ b/tools/fastbgp/play.py @@ -855,17 +855,15 @@ class MessageGenerator(object): "\x80" # Flags ("Optional, non-transitive") "\x09" # Type (ORIGINATOR_ID) "\x04" # Length (4) - # ORIGINATOR_ID (4 bytes) - + struct.pack(">I", int(originator_id)) - ) + ) # ORIGINATOR_ID (4 bytes) + path_attributes_hex += struct.pack(">I", int(originator_id)) if cluster_list_item is not None: path_attributes_hex += ( "\x80" # Flags ("Optional, non-transitive") "\x09" # Type (CLUSTER_LIST) "\x04" # Length (4) - # one CLUSTER_LIST item (4 bytes) - + struct.pack(">I", int(cluster_list_item)) - ) + ) # one CLUSTER_LIST item (4 bytes) + path_attributes_hex += struct.pack(">I", int(cluster_list_item)) # Total Path Attributes Length total_path_attributes_length = len(path_attributes_hex) -- 2.36.6