Cleanup: unused vars, imports

This commit is contained in:
Campbell Barton
2018-11-26 09:26:15 +11:00
parent 24c383cfc4
commit cb66a28d82
11 changed files with 13 additions and 25 deletions

View File

@@ -141,7 +141,7 @@ def reset_blend():
if USE_RANDOM_SCREEN:
import random
for i in range(random.randint(0, len(bpy.data.screens))):
for _ in range(random.randint(0, len(bpy.data.screens))):
bpy.ops.screen.delete()
print("Scree IS", bpy.context.screen)
@@ -237,7 +237,7 @@ if USE_ATTRSET:
seq = getattr(bpy.data, attr)
if seq.__class__.__name__ == 'bpy_prop_collection':
for id_data in seq:
for val, prop, tp in id_walk(id_data, bpy.data):
for val, prop, _tp in id_walk(id_data, bpy.data):
# print(id_data)
for val_rnd in _random_values:
try: