[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Fiddle syntax to work under python2.0
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv16309/lib/mixminion
Modified Files:
ClientDirectory.py
Log Message:
Fiddle syntax to work under python2.0
Index: ClientDirectory.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientDirectory.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- ClientDirectory.py 6 Mar 2004 00:04:37 -0000 1.34
+++ ClientDirectory.py 6 Mar 2004 05:15:40 -0000 1.35
@@ -273,8 +273,10 @@
dirFile = os.path.join(self.dir, "dir")
for fname in gzipFile, dirFile:
self._diskLock.acquire()
+ if not os.path.exists(fname):
+ self._diskLock.release()
+ continue
try:
- if not os.path.exists(fname): continue
s_lastDownload = s_lastModified = \
os.stat(fname)[stat.ST_MTIME]
try: