[gnome-clocks] Two small indentation fixes



commit d43cdebfdde6a4ac1d353619ec0a2814388cc0b8
Author: Volker Sobek <reklov live com>
Date:   Thu Nov 29 11:58:51 2012 +0100

    Two small indentation fixes
    
    The values only need to be set to 0 if they weren't already 0.

 gnomeclocks/stopwatch.py |    2 +-
 gnomeclocks/timer.py     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomeclocks/stopwatch.py b/gnomeclocks/stopwatch.py
index 37967a4..bbc4627 100644
--- a/gnomeclocks/stopwatch.py
+++ b/gnomeclocks/stopwatch.py
@@ -183,7 +183,7 @@ class Stopwatch(Clock):
     def _remove_timeout(self):
         if self.timeout_id != 0:
             GLib.source_remove(self.timeout_id)
-        self.timeout_id = 0
+            self.timeout_id = 0
 
     def start(self):
         if self.timeout_id == 0:
diff --git a/gnomeclocks/timer.py b/gnomeclocks/timer.py
index f71bbcd..ffb25ba 100644
--- a/gnomeclocks/timer.py
+++ b/gnomeclocks/timer.py
@@ -196,7 +196,7 @@ class Timer(Clock):
     def _remove_timeout(self):
         if self.timeout_id != 0:
             GLib.source_remove(self.timeout_id)
-        self.timeout_id = 0
+            self.timeout_id = 0
 
     def start(self):
         if self.state == Timer.State.STOPPED and self.timeout_id == 0:



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