Cleanup: unused imports

This commit is contained in:
Campbell Barton 2021-03-06 19:24:07 +11:00
parent 9dc0c44aa1
commit 37793b90be
12 changed files with 2 additions and 20 deletions

View File

@ -22,8 +22,6 @@
# XXX: This script is meant to be used from inside Blender!
# You should not directly use this script, rather use update_msg.py!
import collections
import copy
import datetime
import os
import re

View File

@ -21,12 +21,9 @@
# Some misc utilities...
import collections
import copy
import hashlib
import os
import re
import struct
import sys
import tempfile
#import time

View File

@ -32,7 +32,6 @@
# \", %s, %x12, %.4f, etc.), protecting them from ugly (evil) fribidi,
# which seems completely unaware of such things (as unicode is...).
import sys
import ctypes
import re

View File

@ -32,7 +32,6 @@ __all__ = (
import bpy
from bpy.props import (
BoolProperty,
FloatVectorProperty,
EnumProperty,
)
@ -50,7 +49,7 @@ def add_object_align_init(context, operator):
:rtype: :class:`mathutils.Matrix`
"""
from mathutils import Matrix, Vector, Euler
from mathutils import Matrix, Vector
properties = operator.properties if operator is not None else None
space_data = context.space_data

View File

@ -19,7 +19,6 @@
# <pep8-80 compliant>
from _bpy import types as bpy_types
import _bpy
StructRNA = bpy_types.bpy_struct
StructMetaPropGroup = bpy_types.bpy_struct_meta_idprop

View File

@ -22,7 +22,6 @@ from bpy.app.handlers import persistent
@persistent
def load_handler(dummy):
import os
from bpy import context
screen = context.screen
for area in screen.areas:

View File

@ -19,7 +19,6 @@
# <pep8-80 compliant>
import bpy
from bpy.types import Operator
from mathutils import Vector

View File

@ -25,7 +25,6 @@ from bpy.props import (
BoolProperty,
EnumProperty,
FloatProperty,
FloatVectorProperty,
IntProperty,
)

View File

@ -18,7 +18,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Operator
from bpy.props import (

View File

@ -17,9 +17,7 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Panel
from bpy.app.translations import pgettext_iface as iface_
class ModifierButtonsPanel:

View File

@ -19,7 +19,7 @@
# <pep8 compliant>
import bpy
from bpy.types import Menu, Panel
from bpy.types import Panel
from bl_ui.utils import PresetPanel
from .properties_physics_common import (
effector_weights_ui,

View File

@ -19,10 +19,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel
from bpy.app.translations import (
contexts as i18n_contexts,
pgettext_iface as iface_,
)
class OUTLINER_HT_header(Header):