[glib] gobject.py: Fix indentation



commit b4af2d685ec02b575b48d23d2bf51678dbc023c2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Sep 19 11:55:47 2013 -0400

    gobject.py: Fix indentation

 gobject/gobject.py |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gobject/gobject.py b/gobject/gobject.py
index 7bb3cbe..ffc25f1 100644
--- a/gobject/gobject.py
+++ b/gobject/gobject.py
@@ -94,21 +94,21 @@ def pretty_printer_lookup (val):
     return None
 
 def get_signal_name (id):
-  if id == None:
+    if id == None:
+        return None
+    id = long(id)
+    if id == 0:
+        return None
+    val = read_global_var ("g_signal_nodes")
+    max_s = read_global_var ("g_n_signal_nodes")
+    max_s = long(max_s)
+    if id < max_s:
+        return val[id]["name"].string()
     return None
-  id = long(id)
-  if id == 0:
-    return None
-  val = read_global_var ("g_signal_nodes")
-  max_s = read_global_var ("g_n_signal_nodes")
-  max_s = long(max_s)
-  if id < max_s:
-    return val[id]["name"].string()
-  return None
 
 class GFrameWrapper:
     def __init__ (self, frame):
-        self.frame = frame;
+        self.frame = frame
 
     def name (self):
         name = self.frame.name()
@@ -145,7 +145,7 @@ class DummyFrame:
 class SignalFrame:
     def __init__ (self, frames):
         self.frame = frames[-1]
-        self.frames = frames;
+        self.frames = frames
 
     def name (self):
         return "signal-emission"


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