From 9799022716071ab2333edfb3ea96a6df8004a53d Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 1 Dec 2017 15:33:39 +0100 Subject: [PATCH] xls_parser: rename type to rec_type to make pylint happier --- oletools/xls_parser.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/oletools/xls_parser.py b/oletools/xls_parser.py index 9f9c789..1ec730e 100644 --- a/oletools/xls_parser.py +++ b/oletools/xls_parser.py @@ -134,7 +134,7 @@ class XlsStream(OleRecordStream): return rec_type, rec_size, None @classmethod - def record_class_for_type(cls, type): + def record_class_for_type(cls, rec_type): """ determine a class for given record type returns (clz, force_read) @@ -146,16 +146,16 @@ class WorkbookStream(XlsStream): """ Stream in excel file that holds most info """ @classmethod - def record_class_for_type(cls, type): + def record_class_for_type(cls, rec_type): """ determine a class for given record type returns (clz, force_read) """ - if type == XlsRecordBof.TYPE: + if rec_type == XlsRecordBof.TYPE: return XlsRecordBof, True - elif type == XlsRecordEof.TYPE: + elif rec_type == XlsRecordEof.TYPE: return XlsRecordEof, False - elif type == XlsRecordSupBook.TYPE: + elif rec_type == XlsRecordSupBook.TYPE: return XlsRecordSupBook, True else: return XlsRecord, False @@ -192,12 +192,12 @@ class XlsbStream(OleRecordStream): return rec_type, rec_size, None @classmethod - def record_class_for_type(cls, type): + def record_class_for_type(cls, rec_type): """ determine a class for given record type returns (clz, force_read) """ - if type == XlsbBeginSupBook.TYPE: + if rec_type == XlsbBeginSupBook.TYPE: return XlsbBeginSupBook, True else: return XlsbRecord, False -- libgit2 0.21.4