Author: johnnyg

Revision: 5458

Log:
        Put string conversion from last commit in correct place.

Diff:
Modified: trunk/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- trunk/deluge/plugins/blocklist/blocklist/core.py    2009-07-06 04:40:57 UTC 
(rev 5457)
+++ trunk/deluge/plugins/blocklist/blocklist/core.py    2009-07-06 04:54:45 UTC 
(rev 5458)
@@ -163,7 +163,7 @@
 
     def update_info(self, blocklist):
         """Updates blocklist info"""
-        self.config["last_update"] = 
str(datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT"))
+        self.config["last_update"] = datetime.datetime.utcnow().strftime("%a, 
%d %b %Y %H:%M:%S GMT")
         self.config["list_size"] = os.path.getsize(blocklist)
 
     def download_list(self, url=None):
@@ -186,7 +186,7 @@
 
         headers = {}
         if self.config["last_update"] and not self.force_download:
-            headers['If-Modified-Since'] = self.config["last_update"]
+            headers['If-Modified-Since'] = str(self.config["last_update"])
 
         log.debug("Attempting to download blocklist %s" % url)
         log.debug("Sending headers: %s" % headers)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to