Skip to content
Snippets Groups Projects
Commit f542f4d2 authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: add trailing commas to multi-line arguments

parent a2bf0bed
Branches
No related tags found
No related merge requests found
......@@ -22,7 +22,8 @@ from os.path import splitext
SKIP_DIRS = (
"extern",
"tests", # not this dir
# Not this directory.
"tests",
)
......
......@@ -69,13 +69,13 @@ del sys
source_dst = os.path.join(
os.path.dirname(__file__),
"..", "..", "..",
"release", "datafiles", "userdef", "userdef_default_theme.c"
"release", "datafiles", "userdef", "userdef_default_theme.c",
)
dna_rename_defs_h = os.path.join(
os.path.dirname(__file__),
"..", "..", "..",
"source", "blender", "makesdna", "intern", "dna_rename_defs.h"
"source", "blender", "makesdna", "intern", "dna_rename_defs.h",
)
......@@ -227,7 +227,7 @@ def file_remove_empty_braces(source_dst):
data_prev = data
data = re.sub(
r'\s+\.[a-zA-Z_0-9]+\s+=\s+\{\s*\},',
key_replace, data, re.MULTILINE
key_replace, data, re.MULTILINE,
)
# Use two spaces instead of tabs.
......
......@@ -222,7 +222,7 @@ class Menu(BaseFakeUI):
self, searchpaths, operator, *,
props_default=None, prop_filepath="filepath",
filter_ext=None, filter_path=None, display_name=None,
add_operator=None
add_operator=None,
):
pass
......
......@@ -156,7 +156,7 @@ def argparse_create() -> argparse.ArgumentParser:
parser.add_argument(
"paths",
nargs=argparse.REMAINDER,
help="All trailing arguments are treated as paths."
help="All trailing arguments are treated as paths.",
)
return parser
......
......@@ -203,7 +203,7 @@ def argparse_create():
parser.add_argument(
"paths",
nargs=argparse.REMAINDER,
help="All trailing arguments are treated as paths."
help="All trailing arguments are treated as paths.",
)
return parser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment