[Pypi-checkins] r828 - trunk/appengine

martin.von.loewis python-checkins at python.org
Mon Jul 26 00:26:13 CEST 2010


Author: martin.von.loewis
Date: Mon Jul 26 00:26:13 2010
New Revision: 828

Modified:
   trunk/appengine/fetch.py
Log:
Reenable queuing.


Modified: trunk/appengine/fetch.py
==============================================================================
--- trunk/appengine/fetch.py	(original)
+++ trunk/appengine/fetch.py	Mon Jul 26 00:26:13 2010
@@ -74,7 +74,7 @@
         url = url.split('#')[0]
         url = url[len('../../packages/'):]
         # insert after current task
-        todo.insert(1,('file', (name, url))) 
+        todo.insert(1,('file', (name, url)))
 
 def copy_file(m, todo, (package, path)):
     f = model.File.get_by_key_name(path.split('/'))
@@ -115,7 +115,7 @@
 
 def last_modified(m, todo, t):
     m.last_modified = t
-    
+
 
 actions = {'package':package,
            'file':copy_file,
@@ -137,6 +137,6 @@
     del todo[0]
     m.todo = pickle.dumps(todo)
     m.put()
-    if todo and 0:
+    if todo:
         taskqueue.add(url='/step')
     return "OK (%s %s)" % (action, param)


More information about the Pypi-checkins mailing list