r289 - in branches/rewrite: . src

Otavio Salvador partial-mirror-devel@lists.alioth.debian.org
Wed, 10 Nov 2004 17:20:55 -0700


Author: otavio
Date: Wed Nov 10 17:20:54 2004
New Revision: 289

Modified:
   branches/rewrite/   (props changed)
   branches/rewrite/src/Download.py
Log:
 r219@nurf:  otavio | 2004-11-11T00:21:14.634052Z
 Better document the code.


Modified: branches/rewrite/src/Download.py
==============================================================================
--- branches/rewrite/src/Download.py	(original)
+++ branches/rewrite/src/Download.py	Wed Nov 10 17:20:54 2004
@@ -50,7 +50,8 @@
             try:
                 url, filename = Download.queue.get_nowait()
             except Empty:
-                return
+                # Doesn't have any other file to download so exit.
+                return 
                 
             f = open(filename, "wb")
             curl = pycurl.Curl()
@@ -83,7 +84,7 @@
             except IOError:
                 pass
 
-            # Store counter information about it
+            # Clear counter information about it
             self._Lock.acquire()
             DownloadQueue.counter -= 1
             self._counter = DownloadQueue.counter