Fix pep8 1.7.0 W503 in play.py 33/32833/2
authorVratko Polak <vrpolak@cisco.com>
Fri, 15 Jan 2016 15:55:11 +0000 (16:55 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 19 Jan 2016 01:02:54 +0000 (01:02 +0000)
"line break before binary operator"

Change-Id: Ifdb89e06f0c0b4a146848cad6ec81f483abf33ee
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
tools/fastbgp/play.py

index b37b5182ce5491c183c688a637a6e685329a0e3c..6ad79a60dee6a7241c143236b7a0b1605af120bb 100755 (executable)
@@ -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)