diff pydershell/pydershell.py @ 13:2a3313bfe574

Minor refactoring.
author Atul Varma <varmaa@toolness.com>
date Sun, 06 Sep 2009 14:27:03 -0700
parents f024e41d0fb9
children 9bcbf780581f
line wrap: on
line diff
--- a/pydershell/pydershell.py	Sun Sep 06 14:25:10 2009 -0700
+++ b/pydershell/pydershell.py	Sun Sep 06 14:27:03 2009 -0700
@@ -14,7 +14,9 @@
     at a regular interval.
     """
 
-    def __init__(self, interval=0.25):
+    DEFAULT_INTERVAL = 0.25
+
+    def __init__(self, interval=DEFAULT_INTERVAL):
         threading.Thread.__init__(self)
         self._lock = threading.Lock()
         self._stop = threading.Event()