From: Vratko Polak Date: Fri, 15 Jan 2016 15:55:11 +0000 (+0100) Subject: Fix pep8 1.7.0 W503 in play.py X-Git-Tag: release/beryllium-sr1~206 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=885de5fc2eb12c87a3cffc97b0a28ec6d4a614fe;hp=73c874d6de6c5296becaca0af562a1307d00ac2c;p=integration%2Ftest.git Fix pep8 1.7.0 W503 in play.py "line break before binary operator" Change-Id: Ifdb89e06f0c0b4a146848cad6ec81f483abf33ee Signed-off-by: Vratko Polak --- 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)