File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ def __init__(
151151
152152 if filename is not None :
153153 include_filenames = [filename ]
154- warnings .warn ("`filename` is deprecated and will be removed in version 1.0. Please use `include_filenames` instead" )
154+ warnings .warn (
155+ "`filename` is deprecated and will be removed in version 1.0. Please use `include_filenames` instead"
156+ )
155157
156158 if exclude_filename is not None :
157159 if isinstance (exclude_filename , str ):
@@ -238,10 +240,7 @@ def _parse_header(self):
238240
239241 # 3) Filter to keep only files with correct extensions
240242 # Note: suffix[1:] removes the leading dot from file extension (e.g., ".ncs" -> "ncs")
241- valid_file_paths = [
242- fp for fp in file_paths
243- if fp .suffix [1 :].lower () in self .extensions
244- ]
243+ valid_file_paths = [fp for fp in file_paths if fp .suffix [1 :].lower () in self .extensions ]
245244
246245 # Convert back to strings for backwards compatibility with existing code
247246 full_filenames = [str (fp ) for fp in valid_file_paths ]
You can’t perform that action at this time.
0 commit comments