[Bf-blender-cvs] [ad9addbf460] master: Cleanup: unused imports

Campbell Barton noreply at git.blender.org
Sun Mar 17 11:15:18 CET 2019


Commit: ad9addbf460f6053b8037a09ec9752d653269561
Author: Campbell Barton
Date:   Sun Mar 17 20:57:47 2019 +1100
Branches: master
https://developer.blender.org/rBad9addbf460f6053b8037a09ec9752d653269561

Cleanup: unused imports

===================================================================

M	doc/blender_file_format/BlendFileDnaExporter_25.py
M	doc/python_api/examples/blf.py
M	doc/python_api/examples/bpy.types.Object.py
M	release/scripts/modules/bpy_extras/object_utils.py
M	release/scripts/modules/gpu_extras/batch.py
M	release/scripts/startup/bl_operators/presets.py
M	tests/python/opengl_draw_tests.py

===================================================================

diff --git a/doc/blender_file_format/BlendFileDnaExporter_25.py b/doc/blender_file_format/BlendFileDnaExporter_25.py
index 54a3bd56eef..21260ea7ebc 100755
--- a/doc/blender_file_format/BlendFileDnaExporter_25.py
+++ b/doc/blender_file_format/BlendFileDnaExporter_25.py
@@ -57,7 +57,6 @@
 
 import struct
 import sys
-import getopt                   # command line arguments handling
 from string import Template     # strings completion
 
 
diff --git a/doc/python_api/examples/blf.py b/doc/python_api/examples/blf.py
index 5e1a2ef64a7..094fd9ddc0f 100644
--- a/doc/python_api/examples/blf.py
+++ b/doc/python_api/examples/blf.py
@@ -6,7 +6,6 @@ Example of using the blf module. For this module to work we
 need to use the OpenGL wrapper :class:`~bgl` as well.
 """
 # import stand alone modules
-import bgl
 import blf
 import bpy
 
diff --git a/doc/python_api/examples/bpy.types.Object.py b/doc/python_api/examples/bpy.types.Object.py
index 743322492b4..405b434381b 100644
--- a/doc/python_api/examples/bpy.types.Object.py
+++ b/doc/python_api/examples/bpy.types.Object.py
@@ -7,7 +7,6 @@ object, placing it into a view layer, selecting it and making it active.
 """
 
 import bpy
-from mathutils import Matrix
 
 view_layer = bpy.context.view_layer
 
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py
index 10132366981..d08b98772f5 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -33,7 +33,6 @@ import bpy
 
 from bpy.props import (
     BoolProperty,
-    BoolVectorProperty,
     FloatVectorProperty,
 )
 
diff --git a/release/scripts/modules/gpu_extras/batch.py b/release/scripts/modules/gpu_extras/batch.py
index 2a1a4dc723c..64d731e318a 100644
--- a/release/scripts/modules/gpu_extras/batch.py
+++ b/release/scripts/modules/gpu_extras/batch.py
@@ -34,7 +34,6 @@ def batch_for_shader(shader, type, content, indices=None):
     :return: compatible batch
     :rtype: :class:`gpu.types.Batch`
     """
-    import gpu
     from gpu.types import (
         GPUBatch,
         GPUIndexBuf,
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index 098f5b02c8a..baacb0c051e 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -19,8 +19,15 @@
 # <pep8 compliant>
 
 import bpy
-from bpy.types import Menu, Operator, Panel, WindowManager
-from bpy.props import StringProperty, BoolProperty
+from bpy.types import (
+    Menu,
+    Operator,
+    WindowManager,
+)
+from bpy.props import (
+    BoolProperty,
+    StringProperty,
+)
 
 # For preset popover menu
 WindowManager.preset_name = StringProperty(
diff --git a/tests/python/opengl_draw_tests.py b/tests/python/opengl_draw_tests.py
index b6c18e289bc..9913f875689 100755
--- a/tests/python/opengl_draw_tests.py
+++ b/tests/python/opengl_draw_tests.py
@@ -3,8 +3,6 @@
 
 import argparse
 import os
-import shlex
-import shutil
 import subprocess
 import sys



More information about the Bf-blender-cvs mailing list