Cleanup: unused imports
authorCampbell Barton <ideasman42@gmail.com>
Thu, 14 Mar 2019 04:14:43 +0000 (15:14 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 14 Mar 2019 04:34:14 +0000 (15:34 +1100)
28 files changed:
release/scripts/startup/bl_ui/properties_constraint.py
release/scripts/startup/bl_ui/properties_data_empty.py
release/scripts/startup/bl_ui/properties_data_gpencil.py
release/scripts/startup/bl_ui/properties_data_light.py
release/scripts/startup/bl_ui/properties_data_lightprobe.py
release/scripts/startup/bl_ui/properties_data_shaderfx.py
release/scripts/startup/bl_ui/properties_mask_common.py
release/scripts/startup/bl_ui/properties_material.py
release/scripts/startup/bl_ui/properties_physics_cloth.py
release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
release/scripts/startup/bl_ui/properties_physics_field.py
release/scripts/startup/bl_ui/properties_physics_rigidbody.py
release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py
release/scripts/startup/bl_ui/properties_physics_softbody.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/properties_view_layer.py
release/scripts/startup/bl_ui/space_filebrowser.py
release/scripts/startup/bl_ui/space_graph.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_nla.py
release/scripts/startup/bl_ui/space_node.py
release/scripts/startup/bl_ui/space_properties.py
release/scripts/startup/bl_ui/space_statusbar.py
release/scripts/startup/bl_ui/space_toolsystem_common.py
release/scripts/startup/bl_ui/space_topbar.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/startup/bl_ui/space_view3d.py

index b19360eb524368cb30c6435bcbb16b49855643d2..a7ec065cd95692ce986dd51282aafd44b456e170 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Panel
 
 
index 70c1315927c76a4e5d459cc9ad184dbcdbe9a06f..b84ee7494f74b85b96c893911f3d7988f9718f2b 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Panel
 
 
index 0a4a17eda82a60bbfc15b1e2173b99354b02353d..90cdbaceab538e5cb9596067e1d0702959b011bb 100644 (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.)
index c35b3b35a88c659001ce25174f4d46a76da890c6..d6f37245d965b5151c1b4286e49cb27f8e8fd04b 100644 (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
 
 
index 0502ccd3a0fbdd654acdbcb43456245ee2d00c48..d6fd0cb6ec2e424a6e8df233d06fec0bacbe1720 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Panel
 
 
index 23add1bb4ce661d937710a04f23723ff5ecc7fc0..5ada588e31a369d08d7356c33621739ffa331269 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Panel
 
 
index 4d502cf3c467e2e54dd720ff01251629708d33e3..d3432a95dc3f871fd3e658b3f9c5dd616de0e992 100644 (file)
@@ -21,7 +21,6 @@
 # panels get subclassed (not registered directly)
 # menus are referenced `as is`
 
-import bpy
 from bpy.types import Menu, UIList
 
 
index 4871d9f6f87661841430f6af6d27c6c11f8973fb..6e21fba51f277a0854772d084c4f80ed7d692f41 100644 (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
 
 
index 4c8e056aa03c23c396b7670af3a3c8cd7d3a33a3..1fc3fcdfdb3d7317808428f3c42d3bd24ebf05de 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import (
     Panel,
 )
index 1d3866bb14271b1b7e0366c72c119f54cc0adfe8..05b531f9a1f67efb29fec767fd7928c68875ce2a 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import (
     Panel,
     UIList,
index b69a4fcc76955fc911435b84249ef3a26dc3b696..7123d33a86b0e9de6564ed3688f8d5be9a8415af 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import (
     Panel,
 )
index 1c0598fb6dc38e477d87ceb864e555d7dfb6c897..dd7bf54dc687db65fb3df924ff0cb4412d369bb4 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import (
     Panel,
 )
index d3ed8c05fdd0889bb656ddf9ea1645cc6140f1a6..02f0dc6ea084f86f6627f987f7da179a791b9af8 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import (
     Panel,
 )
index d7b222523e371ee4e4cc264d3c4928039b2e6e3e..462797ad5971088b678c821dc84ecd9220d69eac 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import (
     Panel,
 )
index e1f84b7d3bf39c59fa28d92c4997eb0ac81d3a22..a05f3c927069c186e4a3928b2087766abf7fb9c0 100644 (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,
index c0f7eca88bccd2ddc504c28dbd5dc554190a4e55..639e31c85ad5beea6cd8a936200c0464ba1106eb 100644 (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:
index fba7933b9cb644e545e06b8de8737104f1071f91..5ab4dbfd16bf3de9f1b0545bdb86fa5c6ea5a172 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Header, Panel, Menu, UIList
 
 
index 3c9e23d86124d7e61152e97277af8078032581a2..09f9529c3022753bda69d43f491f95cf86f49b37 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import Header, Menu, Panel
 from .space_dopesheet import (
     DopesheetFilterPopoverBase,
index 14de0d9826a57a9392cc2a4f6f81319efa2f2b75..95a411d4c9f53262bb7e414d3e1787781e795e84 100644 (file)
@@ -18,8 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
-import math
 from bpy.types import (
     Header,
     Menu,
index 49c55410f53c49718bd0ca5dfb8bbdb32483b007..3ce482916193e6af51628e503791db1367ff42b8 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Header, Menu
 
 
index 13f07c0a69c4e4fb2869302f0a9ad878307a40c4..62a8e87b7796cf1055a97647449dd426d11114b3 100644 (file)
@@ -18,7 +18,6 @@
 
 # <pep8 compliant>
 
-import bpy
 from bpy.types import Header, Menu, Panel
 from .space_dopesheet import (
     DopesheetFilterPopoverBase,
index c2e5a979ade5aa4d1e1e9ccb6f64fb7d9d95c97a..e6765d59723b3fb985d4f463d5f9472ceec288c8 100644 (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,
 )
index b60e1e7d6fb316b42ffb1a6aae6459db35582113..3febcce37c78cdf08d6027e29fb4e85e865b9051 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Header, Panel
 
 
index 87085e4ceea3fdb748920c32497e967a6ad28079..4984372eed3c4f337abba0cd43b2fabdd99c881b 100644 (file)
@@ -17,7 +17,6 @@
 # ##### END GPL LICENSE BLOCK #####
 
 # <pep8 compliant>
-import bpy
 from bpy.types import Header
 
 
index 24e913a23233559acd901c8ac7648668e78631f4..44ae5c2490ab097d6a4b0495bc4e62c2679e082e 100644 (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)]
index 9bf2d48c6ee1d3f23d1de1fa6a35da26eb3bcae9..d2482529ac4846d7926e62edfa7059e402b05f18 100644 (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):
index f1870b638a894aacf4fe938f327e2a617bb01ddd..d1fd250991fc3505564b392aaa32646b1b732fc4 100644 (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
 
index 1e348e1a3e089a9b762abb520c5476bc81ac03ea..f11a934e5b49bd1e08b5d9562cf557d040f78023 100644 (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