Cleanup: remove unused variables

This commit is contained in:
Campbell Barton 2024-03-21 10:06:18 +11:00
parent 57dd9c21d3
commit 6a937d646b
5 changed files with 3 additions and 5 deletions

@ -176,7 +176,6 @@ def main() -> None:
# Support version without a minor version "3" (add zero).
tuple((0, 0, 0))
)
python_version_str = "%d.%d" % python_version_number[:2]
# Get Blender version.
blender_version_str = str(make_utils.parse_blender_version())

@ -114,7 +114,7 @@ def get_gpu_device_type(blender):
if line.startswith("GPU_DEVICE_TYPE:"):
vendor = line.split(':')[1]
return vendor
except BaseException as e:
except BaseException:
return None
return None

@ -499,7 +499,7 @@ class Report:
if completed_process.returncode != 0:
crash = True
output = completed_process.stdout
except BaseException as e:
except BaseException:
crash = True
if verbose:

@ -965,7 +965,7 @@ class DNAStruct:
use_str=use_str,
use_str_nil=use_nil,
)
except NotImplementedError as e:
except NotImplementedError:
raise NotImplementedError("%r exists, but can't resolve field %r" %
(path, dna_name.name_only), dna_name, dna_type)

@ -666,7 +666,6 @@ def main():
print_commit(c)
sys.stdout.flush()
accept = False
while True:
print("Space=" + colorize("Accept", 'green'),
"Enter=" + colorize("Skip", 'red'),