summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2009-11-23 15:58:17 -0200
committerTomeu Vizoso <tomeu@sugarlabs.org>2009-11-30 11:27:54 +0000
commitd1ae73f3cf7cebdb74c9ec56b08928a2a53b9de6 (patch)
tree281814763e1bb568e8ea35afb6837349d3a3dfb7
parenta8660621679c629fc81320a8ddf5bf2c7ee1f177 (diff)
downloadpygi-d1ae73f3cf7cebdb74c9ec56b08928a2a53b9de6.tar.gz
pygi-d1ae73f3cf7cebdb74c9ec56b08928a2a53b9de6.tar.xz
pygi-d1ae73f3cf7cebdb74c9ec56b08928a2a53b9de6.zip
Pythonify. Avoid ; and () around if statements
https://bugzilla.gnome.org/show_bug.cgi?id=602830
-rw-r--r--gi/types.py8
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()