Skip to content

Commit 5b3cd8c

Browse files
committed
removed commented-out draft code from split_list_arg() and list_files()
1 parent d4653f9 commit 5b3cd8c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

run-clang-format.py

-13
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def list_files(files, recursive=False, extensions=None, exclude=None):
7070

7171
out = []
7272
for file in files:
73-
# file = file.replace("\\", "")
7473
if recursive and os.path.isdir(file):
7574
for dirpath, dnames, fnames in os.walk(file):
7675
fpaths = [os.path.join(dirpath, fname) for fname in fnames]
@@ -259,18 +258,6 @@ def split_list_arg(arg):
259258
"""
260259
# pattern matches all whitespaces except those preceded by a backslash, '\'
261260
pattern = r'(?<!\\)\s+'
262-
# if len(arg) == 1:
263-
# # split list by regex
264-
# paths = re.split(pattern, arg[0])
265-
# print(paths)
266-
# paths = normalize_paths(paths)
267-
# # for path in paths:
268-
# # print(path)
269-
# # # normalize paths by removing forward slashes
270-
# # path = path.replace("\\", "dfgdf")
271-
# # print(path)
272-
# print(paths)
273-
# return paths
274261
return normalize_paths(re.split(pattern, arg[0])) if len(arg) == 1 else arg
275262

276263

0 commit comments

Comments
 (0)