Cleanup: unused imports

This commit is contained in:
Campbell Barton 2019-03-14 15:14:43 +11:00
parent c567dd5ad9
commit 0bd45a2d51
28 changed files with 4 additions and 35 deletions

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Panel

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Panel

View File

@ -20,9 +20,6 @@
import bpy
from bpy.types import Menu, Panel, UIList
from rna_prop_ui import PropertyPanel
from .properties_grease_pencil_common import (
GPENCIL_UL_layer,
)
###############################
# Base-Classes (for shared stuff - e.g. poll, attributes, etc.)

View File

@ -18,7 +18,7 @@
# <pep8 compliant>
import bpy
from bpy.types import Menu, Panel
from bpy.types import Panel
from rna_prop_ui import PropertyPanel

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Panel

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Panel

View File

@ -21,7 +21,6 @@
# panels get subclassed (not registered directly)
# menus are referenced `as is`
import bpy
from bpy.types import Menu, UIList

View File

@ -20,7 +20,6 @@
import bpy
from bpy.types import Menu, Panel, UIList
from rna_prop_ui import PropertyPanel
from bpy.app.translations import pgettext_iface as iface_
from bpy_extras.node_utils import find_node_input

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,8 +18,7 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Menu, Panel, UIList
from bpy.types import Panel
from .space_view3d import (
VIEW3D_PT_shading_lighting,
VIEW3D_PT_shading_color,

View File

@ -17,8 +17,7 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Panel, UIList
from bpy.types import Panel
class ViewLayerButtonsPanel:

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Header, Panel, Menu, UIList

View File

@ -18,7 +18,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel
from .space_dopesheet import (
DopesheetFilterPopoverBase,

View File

@ -18,8 +18,6 @@
# <pep8 compliant>
import bpy
import math
from bpy.types import (
Header,
Menu,

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu

View File

@ -18,7 +18,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel
from .space_dopesheet import (
DopesheetFilterPopoverBase,

View File

@ -23,7 +23,6 @@ from bpy.types import Header, Menu, Panel
from bpy.app.translations import pgettext_iface as iface_
from bl_ui.utils import PresetPanel
from .properties_grease_pencil_common import (
AnnotationDrawingToolsPanel,
AnnotationDataPanel,
GreasePencilToolsPanel,
)

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Header, Panel

View File

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
import bpy
from bpy.types import Header

View File

@ -116,7 +116,7 @@ def from_dict(kw_args):
kw.update(kw_args)
keymap = kw["keymap"]
if kw["keymap"] is None:
if keymap is None:
pass
elif type(keymap) is tuple:
keymap = [_keymap_fn_from_seq(keymap)]

View File

@ -19,9 +19,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel
from .properties_grease_pencil_common import (
GPENCIL_UL_layer,
)
class TOPBAR_HT_upper_bar(Header):

View File

@ -601,7 +601,6 @@ class USERPREF_PT_viewport_quality(PreferencePanel, Panel):
return (prefs.active_section == 'VIEWPORT')
def draw_props(self, context, layout):
import sys
prefs = context.preferences
system = prefs.system

View File

@ -5359,7 +5359,6 @@ class VIEW3D_PT_gpencil_guide(Panel):
bl_label = "Guides"
def draw(self, context):
from math import pi
settings = context.tool_settings.gpencil_sculpt.guide
layout = self.layout