Add copyright notice and g/c some unused code.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-07 12:49:52 +00:00
1 parent f8812a7ea3
commit 796e1b0cdf
1 file changed
+5 -2
+5 -2
View File
@@ -1,3 +1,8 @@
# Copyright (C) 2005 Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
# This file is subject to the terms and conditions of the GNU General
# Public License. See the file "COPYING" in the main directory of
# this archive for more details.
import select
import threading
@@ -9,7 +14,6 @@ class xswatch:
threadcond = threading.Condition()
xs = None
xslock = threading.Lock()
watches = []
def __init__(self, path, fn, args=(), kwargs={}):
self.fn = fn
@@ -19,7 +23,6 @@ class xswatch:
xswatch.xslock.acquire()
xswatch.xs.watch(path, self)
xswatch.xslock.release()
xswatch.watches.append(self)
def watchStart(cls):
cls.threadcond.acquire()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.