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