Fix script
Fix undef'd var scenario Change-Id: Idd51c2838cb2863faf31fd33eba63270633f1bdb Signed-off-by: Ron Stone <ronald.stone@windriver.com>
This commit is contained in:
parent
0b3fced7df
commit
4a4b18f19f
@ -8,6 +8,7 @@ def remove_column_from_tables(file_path):
|
||||
with open(file_path, 'r', encoding='utf-8') as file:
|
||||
soup = BeautifulSoup(file, 'lxml')
|
||||
|
||||
empty_rows = 0
|
||||
in_context = None
|
||||
|
||||
print("Checking if in valid context for", file_path)
|
||||
@ -41,8 +42,6 @@ def remove_column_from_tables(file_path):
|
||||
if row_tag:
|
||||
if row_tag.get('content') == 1:
|
||||
empty_rows = 1
|
||||
else:
|
||||
empty_rows = 0
|
||||
|
||||
for column_name in column_names:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user