From e4e8b36c7a0f4e323d84f551ae2af38d5483100e Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 16 Apr 2022 10:39:27 +0800 Subject: [PATCH 1/2] Fixed long line. --- register_printer/parser/register_parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/register_printer/parser/register_parser.py b/register_printer/parser/register_parser.py index a2a5ef9..946b597 100644 --- a/register_printer/parser/register_parser.py +++ b/register_printer/parser/register_parser.py @@ -22,7 +22,10 @@ def is_field_row(row): return False -def validate_register_row_empty_field(row, register_table_column_mapping, previous_context): +def validate_register_row_empty_field( + row, + register_table_column_mapping, + previous_context): """ row can be obtained by xlrd sheet.row() method. It's a sequence of cell objects. From 58009d967b56c600b52520a778dcd2116e76bd70 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 16 Apr 2022 10:45:32 +0800 Subject: [PATCH 2/2] Fixed the long line. --- register_printer/parser/register_parser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/register_printer/parser/register_parser.py b/register_printer/parser/register_parser.py index 946b597..0b0594a 100644 --- a/register_printer/parser/register_parser.py +++ b/register_printer/parser/register_parser.py @@ -52,7 +52,11 @@ def parse_register_row(row, register_table_column_mapping, previous_context): a sequence of cells. """ context = previous_context.copy() - validate_register_row_empty_field(row, register_table_column_mapping, context) + validate_register_row_empty_field( + row, + register_table_column_mapping, + context + ) context.column = register_table_column_mapping["offset"] try: