Cleanup: remove unused imports

This commit is contained in:
Campbell Barton 2024-01-08 11:40:53 +11:00
parent 375c217ea0
commit 5dd91346e1
8 changed files with 2 additions and 15 deletions

@ -91,7 +91,6 @@ def find_dominating_file(
# CMake Cache Access
def cmake_cache_var_iter(filepath_cmake_cache: str) -> Generator[Tuple[str, str, str], None, None]:
import re
re_cache = re.compile(r"([A-Za-z0-9_\-]+)?:?([A-Za-z0-9_\-]+)?=(.*)$")
with open(filepath_cmake_cache, "r", encoding="utf-8") as cache_file:
for l in cache_file:

@ -9,7 +9,6 @@
import argparse
import os
import shutil
import sys
import make_utils

@ -23,8 +23,6 @@ from make_utils import call, check_output
from urllib.parse import urljoin
from typing import (
List,
Iterable,
Optional,
)

@ -6,8 +6,6 @@ __all__ = (
"bmesh_linked_uv_islands",
)
import bmesh
def match_uv(face, vert, uv, uv_layer):
for loop in face.loops:

@ -5,10 +5,6 @@
import argparse
import os
import platform
import shlex
import shutil
import subprocess
import sys
from pathlib import Path

@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import os
from os.path import join, splitext
from os.path import join
from check_mypy_config import PATHS, PATHS_EXCLUDE
@ -63,7 +63,7 @@ def path_expand_with_args(
def main() -> None:
import sys
import subprocess
# import subprocess
import shlex
# Fixed location, so change the current working directory doesn't create cache everywhere.

@ -26,7 +26,6 @@ import sys
import time
from typing import (
Any,
List,
Optional,
Sequence,

@ -406,8 +406,6 @@ def release_log_init(path, source_dir, blender_rev, start_sha1, end_sha1, rstate
def write_release_log(path, release_log, c, cat, rstate, rstate_list):
import io
main_cat, sub_cats = BUGFIX_CATEGORIES[cat[0]]
sub_cat = sub_cats[cat[1]] if cat[1] is not None else None