]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove extraneous semicolons from Python code
authorMikko Rasa <tdb@tdb.fi>
Sat, 4 May 2019 13:40:59 +0000 (16:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 4 May 2019 13:40:59 +0000 (16:40 +0300)
Sometimes I instinctively put one in because I'm used to writing C++.

blender/io_mspgl/__init__.py
blender/io_mspgl/export_object.py
blender/io_mspgl/export_scene.py
blender/io_mspgl/properties.py
scripts/extgen.py
scripts/maketex.py

index 11a22e9f4ff992be980f29bceb0732866e2c0b6d..a275110ee0cc2cd6b76682b526dd0c0a8fb867e8 100644 (file)
@@ -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__)
index 810d1cbfe42fc719878dc48580fa5b8b0b9a4083..84c0a78114a83752d6ae33bf2a49b9bb97e2abbf 100644 (file)
@@ -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)
index a538f4da3ba0f7cd6126e923d5d36693cb3b5a4a..84e6be3e6aa40605f07d80ceeb895895db8c82ea 100644 (file)
@@ -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()
index 39911b85511a16b7df387b93ab9255393743fe36..1a158598a37619c0207ba51fa6f6098ec982ba98 100644 (file)
@@ -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")
index 35f016600487de594fa511d3506f77cb7e5c006b..92c78b504ff5a27ae1582c0e5d294f748d3692ed 100755 (executable)
@@ -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
index 2e1069486585a252584993f0bc3217fcf8131fc3..520be8424b02f39740b663bd03fc83c736e05f54 100755 (executable)
@@ -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