Author: johnnyg

Revision: 5457

Log:
        Make sure last_update is an ascii encoded string.

Diff:
Modified: trunk/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- trunk/deluge/plugins/blocklist/blocklist/core.py    2009-07-05 18:38:51 UTC 
(rev 5456)
+++ trunk/deluge/plugins/blocklist/blocklist/core.py    2009-07-06 04:40:57 UTC 
(rev 5457)
@@ -163,7 +163,7 @@
 
     def update_info(self, blocklist):
         """Updates blocklist info"""
-        self.config["last_update"] = datetime.datetime.utcnow().strftime("%a, 
%d %b %Y %H:%M:%S GMT")
+        self.config["last_update"] = 
str(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):



--~--~---------~--~----~------------~-------~--~----~
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