Cleanup trailing whitespace
[netvirt.git] / resources / commons / readable_flows.py
index 43901844a3a2ecdbee305ee101f9131356fc4856..5d5126c2feef2ee26bc9f9c8f2880c76a7a19c02 100755 (executable)
@@ -75,10 +75,10 @@ def print_flow(indent, f):
     print indent + f
 # WIP
 #    flow = indent + f
-#    if len(flow) <= MAX_LINE: 
+#    if len(flow) <= MAX_LINE:
 #        print flow
 #        return
-#    
+#
 #    cut = flow.find('ACTIONS')
 #    match = flow[0:cut - 1]
 #    action = indent + indent + flow[cut:]
@@ -88,7 +88,7 @@ def print_flow(indent, f):
 #            print action
 #            break
 #        cut = action.rfind(',', 0, MAX_LINE)
-#        if cut < 2: 
+#        if cut < 2:
 #            print action
 #            break
 #        print action[0:cut + 1]
@@ -109,13 +109,13 @@ for line in port_list_out.split('\n')[2:]:
 table = ''
 rules_by_prio = defaultdict(list)
 for line in sys.stdin:
-    for (mac, ip) in addresses: 
+    for (mac, ip) in addresses:
         line = re.sub(mac, '%s(%s)' % (mac, ip), line)
         line = re.sub('=%s(\D)' % ip, '=%s(%s)\\1' % (ip, mac), line)
     line = re.sub('tun_id=0x(?P<num>[0-9a-fA-F]*)', tun_match_to_decimal, line)
     line = re.sub('0x(?P<num>[0-9a-fA-F]*)->tun_id', tun_set_to_decimal, line)
     match = re.match(LINE_PATTERN, line)
-    if not match: 
+    if not match:
         print '[Not a flow line?]:  ' + line,
         continue