[pygi] Pythonify. Avoid ; and () around if statements



commit d1ae73f3cf7cebdb74c9ec56b08928a2a53b9de6
Author: Johan Dahlin <johan gnome org>
Date:   Mon Nov 23 15:58:17 2009 -0200

    Pythonify. Avoid ; and () around if statements
    
    https://bugzilla.gnome.org/show_bug.cgi?id=602830

 gi/types.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gi/types.py b/gi/types.py
index 75b41b9..5212fef 100644
--- a/gi/types.py
+++ b/gi/types.py
@@ -99,16 +99,16 @@ class GObjectMeta(gobject.GObjectMeta, MetaClassHelper):
 
         # Avoid touching anything else than the base class.
         if cls.__info__.get_g_type().pytype is not None:
-            return;
+            return
 
         cls._setup_methods()
         cls._setup_constants()
 
-        if (isinstance(cls.__info__, ObjectInfo)):
+        if isinstance(cls.__info__, ObjectInfo):
             cls._setup_fields()
             cls._setup_constructors()
             set_object_has_new_constructor(cls.__info__.get_g_type())
-        elif (isinstance(cls.__info__, InterfaceInfo)):
+        elif isinstance(cls.__info__, InterfaceInfo):
             register_interface_info(cls.__info__.get_g_type())
 
 
@@ -141,7 +141,7 @@ class StructMeta(type, MetaClassHelper):
         # Avoid touching anything else than the base class.
         g_type = cls.__info__.get_g_type()
         if g_type != gobject.TYPE_INVALID and g_type.pytype is not None:
-            return;
+            return
 
         cls._setup_fields()
         cls._setup_methods()



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