[gimp] extensions: removing a bunch of useless semicolon on Python script.



commit a9a9bb7cc0c9e4149b8da57d25d916ac6a19bb08
Author: Jehan <jehan girinstud io>
Date:   Sat Oct 17 19:30:23 2020 +0200

    extensions: removing a bunch of useless semicolon on Python script.
    
    Probably forgotten remnants from the C to Python port, as I copy-pasted
    the C plug-in and converted each line of code to Python 3, one by one.
    These semicolons are not breaking the plug-in, but that is still not
    very "Python-style". Let's say it's valid, though useless in this case
    and clearly not considered beautiful Python.

 extensions/goat-exercises/goat-exercise-py3.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/extensions/goat-exercises/goat-exercise-py3.py b/extensions/goat-exercises/goat-exercise-py3.py
index 5d980dc55e..7dd94f21b9 100755
--- a/extensions/goat-exercises/goat-exercise-py3.py
+++ b/extensions/goat-exercises/goat-exercise-py3.py
@@ -43,16 +43,16 @@ class Goat (Gimp.PlugIn):
                                        Gimp.PDBProcType.PLUGIN,
                                        self.run, None)
 
-        procedure.set_image_types("*");
+        procedure.set_image_types("*")
 
-        procedure.set_menu_label("Exercise a goat and a python");
-        procedure.set_icon_name(GimpUi.ICON_GEGL);
-        procedure.add_menu_path('<Image>/Filters/Development/Goat exercises/');
+        procedure.set_menu_label("Exercise a goat and a python")
+        procedure.set_icon_name(GimpUi.ICON_GEGL)
+        procedure.add_menu_path('<Image>/Filters/Development/Goat exercises/')
 
         procedure.set_documentation("Exercise a goat in the Python 3 language",
                                     "Takes a goat for a walk in Python 3",
-                                    name);
-        procedure.set_attribution("Jehan", "Jehan", "2019");
+                                    name)
+        procedure.set_attribution("Jehan", "Jehan", "2019")
 
         return procedure
 
@@ -73,10 +73,10 @@ class Goat (Gimp.PlugIn):
             dialog.add_button("_Source", Gtk.ResponseType.APPLY)
             dialog.add_button("_OK", Gtk.ResponseType.OK)
 
-            geometry = Gdk.Geometry();
-            geometry.min_aspect = 0.5;
-            geometry.max_aspect = 1.0;
-            dialog.set_geometry_hints(None, geometry, Gdk.WindowHints.ASPECT);
+            geometry = Gdk.Geometry()
+            geometry.min_aspect = 0.5
+            geometry.max_aspect = 1.0
+            dialog.set_geometry_hints(None, geometry, Gdk.WindowHints.ASPECT)
 
             box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=2)
             dialog.get_content_area().add(box)
@@ -130,9 +130,9 @@ class Goat (Gimp.PlugIn):
                     return procedure.new_return_values(Gimp.PDBStatusType.CANCEL,
                                                        GLib.Error())
 
-        intersect, x, y, width, height = drawable.mask_intersect();
+        intersect, x, y, width, height = drawable.mask_intersect()
         if intersect:
-            Gegl.init(None);
+            Gegl.init(None)
 
             buffer = drawable.get_buffer()
             shadow_buffer = drawable.get_shadow_buffer()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]