From b9b4b38b516864b5566fc6bdd1131d20a64f4b4c Mon Sep 17 00:00:00 2001 From: Adhemar Zerlotini Neto Date: Wed, 18 Oct 2023 14:33:58 -0300 Subject: [PATCH] fix lint --- machado/loaders/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machado/loaders/common.py b/machado/loaders/common.py index 08296f2..659d877 100644 --- a/machado/loaders/common.py +++ b/machado/loaders/common.py @@ -86,9 +86,9 @@ def get_num_lines(file_path): i = 0 for line in fp: - if type(line) == str and str(line).startswith("#"): + if type(line) is str and str(line).startswith("#"): continue - if type(line) == bytes and line.startswith(b"#"): + if type(line) is bytes and line.startswith(b"#"): continue i += 1 return i