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

Cleanup: unused import, copyright identifier & spelling

parent c4e77f76
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ class UnitTesting(unittest.TestCase): ...@@ -147,7 +147,7 @@ class UnitTesting(unittest.TestCase):
def checkDirectory(self, directory): def checkDirectory(self, directory):
""" """
Recursively traverse directory and check every binary in in. Recursively traverse directory and check every binary in.
""" """
for path in Path(directory).rglob("*"): for path in Path(directory).rglob("*"):
......
...@@ -218,7 +218,7 @@ def cmake_get_src(f: str) -> None: ...@@ -218,7 +218,7 @@ def cmake_get_src(f: str) -> None:
for l, line_number in tokens: for l, line_number in tokens:
# replace dirs # Replace directories.
l = l.replace("${CMAKE_SOURCE_DIR}", SOURCE_DIR) l = l.replace("${CMAKE_SOURCE_DIR}", SOURCE_DIR)
l = l.replace("${CMAKE_CURRENT_SOURCE_DIR}", cmake_base) l = l.replace("${CMAKE_CURRENT_SOURCE_DIR}", cmake_base)
l = l.replace("${CMAKE_CURRENT_BINARY_DIR}", cmake_base_bin) l = l.replace("${CMAKE_CURRENT_BINARY_DIR}", cmake_base_bin)
......
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# (c) 2009 At Mind B.V. - Jeroen Bakker. (c) 2014 Blender Foundation - Campbell Barton. # Copyright 2009 At Mind B.V. - Jeroen Bakker.
# 2014 Blender Foundation. - Campbell Barton.
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# NOTICE: this module is expanded upon in Blender Asset Tracer. # NOTICE: this module is expanded upon in Blender Asset Tracer.
......
...@@ -9,7 +9,7 @@ Example use: ...@@ -9,7 +9,7 @@ Example use:
credits_git_gen.py --source=/src/blender --range=SHA1..HEAD credits_git_gen.py --source=/src/blender --range=SHA1..HEAD
""" """
from git_log import GitCommit, GitCommitIter from git_log import GitCommitIter
import unicodedata as ud import unicodedata as ud
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
......
...@@ -133,7 +133,7 @@ def main(): ...@@ -133,7 +133,7 @@ def main():
("-fno-common", 1), ("-fno-common", 1),
("-DDEBUG", 1), ("-D_DEBUG", 1), ("-DDEBUG", 1), ("-D_DEBUG", 1),
# asan flags # ASAN flags.
(re.compile(r"\-fsanitize=.*"), 1), (re.compile(r"\-fsanitize=.*"), 1),
): ):
if isinstance(arg, str): if isinstance(arg, str):
......
...@@ -57,7 +57,7 @@ def sort_cmake_file_lists(fn: str, data_src: str) -> Optional[str]: ...@@ -57,7 +57,7 @@ def sort_cmake_file_lists(fn: str, data_src: str) -> Optional[str]:
a = a.split("#", 1)[0] a = a.split("#", 1)[0]
b = b.split("#", 1)[0] b = b.split("#", 1)[0]
# Compare leading whitespace. # Compare leading white-space.
if a[:-(len(a.lstrip()))] == b[:-(len(b.lstrip()))]: if a[:-(len(a.lstrip()))] == b[:-(len(b.lstrip()))]:
# return False # return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment