From 211d5ec0e55778ab023b1bc6bb54e2c9afa7df0c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 4 May 2019 16:40:59 +0300 Subject: [PATCH] Remove extraneous semicolons from Python code Sometimes I instinctively put one in because I'm used to writing C++. --- blender/io_mspgl/__init__.py | 4 ++-- blender/io_mspgl/export_object.py | 2 +- blender/io_mspgl/export_scene.py | 2 +- blender/io_mspgl/properties.py | 12 ++++++------ scripts/extgen.py | 2 +- scripts/maketex.py | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/blender/io_mspgl/__init__.py b/blender/io_mspgl/__init__.py index 11a22e9f..a275110e 100644 --- a/blender/io_mspgl/__init__.py +++ b/blender/io_mspgl/__init__.py @@ -93,7 +93,7 @@ class ExportMspGLObject(bpy.types.Operator, ExportMspGLMeshBase): col.prop(self, "textures") col.separator() - self.layout.separator(); + self.layout.separator() col = self.layout.column() col.label("Files") @@ -144,7 +144,7 @@ def register(): bpy.types.INFO_MT_file_export.append(menu_func_export) from .properties import register_properties - register_properties(); + register_properties() def unregister(): bpy.utils.unregister_module(__name__) diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index 810d1cbf..84c0a781 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -228,4 +228,4 @@ class ObjectExporter: out_file.write("ambient", cm(amb.r), cm(amb.g), cm(amb.b), 1.0) spec = mat.specular_color*mat.specular_intensity out_file.write("specular", spec.r, spec.g, spec.b, 1.0) - out_file.write("shininess", mat.specular_hardness); + out_file.write("shininess", mat.specular_hardness) diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index a538f4da..84e6be3e 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -82,4 +82,4 @@ class SceneExporter: axis = q.axis out_file.write("rotation", angle*180/math.pi, axis[0], axis[1], axis[2]) out_file.write("scale", o.scale[0], o.scale[1], o.scale[2]) - out_file.end(); + out_file.end() diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index 39911b85..1a158598 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -43,12 +43,12 @@ class MspGLObjectProperties(bpy.types.Panel): def draw(self, context): obj = context.active_object - self.layout.prop(obj, "technique"); - self.layout.prop(obj, "inherit_tech"); + self.layout.prop(obj, "technique") + self.layout.prop(obj, "inherit_tech") if obj.inherit_tech: - self.layout.prop(obj, "override_material"); + self.layout.prop(obj, "override_material") self.layout.prop(obj, "material_tex") - self.layout.prop(obj, "compound"); + self.layout.prop(obj, "compound") self.layout.prop(obj, "lod_for_parent") if obj.lod_for_parent: self.layout.prop(obj, "lod_index") @@ -70,9 +70,9 @@ class MspGLMaterialProperties(bpy.types.Panel): return self.layout.prop(mat, "srgb_colors") - self.layout.prop(mat, "array_atlas"); + self.layout.prop(mat, "array_atlas") if mat.array_atlas: - self.layout.prop(mat, "array_layer"); + self.layout.prop(mat, "array_layer") def register_properties(): bpy.types.Mesh.winding_test = bpy.props.BoolProperty(name="Winding test", description="Perform winding test to skip back faces") diff --git a/scripts/extgen.py b/scripts/extgen.py index 35f01660..92c78b50 100755 --- a/scripts/extgen.py +++ b/scripts/extgen.py @@ -514,7 +514,7 @@ class SourceGenerator: self.enums.sort(key=(lambda e: e.value)) self.core_version = detect_core_version(host_api, things, debug) self.deprecated_version = detect_deprecated_version(host_api, things, debug) - self.backport_ext = detect_backport_extension(host_api, things); + self.backport_ext = detect_backport_extension(host_api, things) b, e = detect_source_extension(host_api, things, debug) self.base_version = b self.source_exts = e diff --git a/scripts/maketex.py b/scripts/maketex.py index 2e106948..520be842 100755 --- a/scripts/maketex.py +++ b/scripts/maketex.py @@ -11,7 +11,7 @@ def escape(str): result += "\\%03o"%ord(c) else: result += c - return result; + return result def make_tex(fn, filter="LINEAR", anisotropy=0, wrap=None, srgb=False): from PIL import Image -- 2.45.2