ia64/xen-unstable

changeset 6675:e991ec23c318

Add copyright notice and g/c some unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Sep 07 12:49:52 2005 +0000 (2005-09-07)
parents a75b08af8d19
children 639a36483fee
files tools/python/xen/xend/xenstore/xswatch.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xswatch.py	Wed Sep 07 12:48:11 2005 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xswatch.py	Wed Sep 07 12:49:52 2005 +0000
     1.3 @@ -1,3 +1,8 @@
     1.4 +# Copyright (C) 2005 Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
     1.5 +
     1.6 +# This file is subject to the terms and conditions of the GNU General
     1.7 +# Public License.  See the file "COPYING" in the main directory of
     1.8 +# this archive for more details.
     1.9  
    1.10  import select
    1.11  import threading
    1.12 @@ -9,7 +14,6 @@ class xswatch:
    1.13      threadcond = threading.Condition()
    1.14      xs = None
    1.15      xslock = threading.Lock()
    1.16 -    watches = []
    1.17      
    1.18      def __init__(self, path, fn, args=(), kwargs={}):
    1.19          self.fn = fn
    1.20 @@ -19,7 +23,6 @@ class xswatch:
    1.21          xswatch.xslock.acquire()
    1.22          xswatch.xs.watch(path, self)
    1.23          xswatch.xslock.release()
    1.24 -        xswatch.watches.append(self)
    1.25  
    1.26      def watchStart(cls):
    1.27          cls.threadcond.acquire()