From 5e55492e453c8af88f6cdd45c2cd11327d8a3698 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 28 Aug 2015 13:31:14 +0200 Subject: * pep8 --- virtual_table.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/virtual_table.py b/virtual_table.py index 5155ac5..9dec8ee 100644 --- a/virtual_table.py +++ b/virtual_table.py @@ -64,7 +64,7 @@ class JFRVirtualTable: header = [con for con in record.select('td.o1')[0].contents if type(con) is NavigableString and re.match( - pair_header_match, con)] + pair_header_match, con)] if len(header): header_match = re.match(pair_header_match, header[0]) pair_number = int(header_match.group(1)) @@ -214,14 +214,14 @@ class JFRVirtualTable: if not len(content.select('tr.virtualTable')): # looking for all the rows with more than 2 cells rows = [row for row - in content.select('tr') - if len(row.select('td')) >= 3] + in content.select('tr') + if len(row.select('td')) >= 3] # only the first "virtual" row needs to be prefixed with a header header_added = False virtual_row = None for row in rows: cells = row.select('td') - # if we're already added a header, meaning we're below the first + # we're already added a header, meaning we're below the first # virtual table, we need to move the row above it # or remove it entirely if header_added: -- cgit v1.2.3