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

View File

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

View File

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

View File

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

View File

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

View File

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