diff options
author | emkael <emkael@tlen.pl> | 2015-08-28 13:31:14 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-08-28 13:31:14 +0200 |
commit | 5e55492e453c8af88f6cdd45c2cd11327d8a3698 (patch) | |
tree | 04f02393281b81d9f00d3e9fcbacc75ad24ac7b2 | |
parent | 3ca66ff92184de9cbeeb227cb53c8e26b88e810f (diff) |
* pep8
-rw-r--r-- | virtual_table.py | 8 |
1 files 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: |