Author: johnnyg
Revision: 6038
Log:
Remove redundant variable.
Diff:
Modified: branches/1.2_RC/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- branches/1.2_RC/deluge/plugins/blocklist/blocklist/core.py 2009-12-17
21:40:21 UTC (rev 6037)
+++ branches/1.2_RC/deluge/plugins/blocklist/blocklist/core.py 2009-12-17
23:08:55 UTC (rev 6038)
@@ -93,10 +93,9 @@
update_now = False
if self.config["load_on_start"]:
if self.config["last_update"]:
- now = datetime.now()
last_update =
datetime.fromtimestamp(self.config["last_update"])
check_period = timedelta(days=self.config["check_after_days"])
- if not self.config["last_update"] or last_update + check_period <
now:
+ if not self.config["last_update"] or last_update + check_period <
datetime.now():
update_now = True
else:
self.use_cache = True
Modified: trunk/deluge/plugins/blocklist/blocklist/core.py
===================================================================
--- trunk/deluge/plugins/blocklist/blocklist/core.py 2009-12-17 21:40:21 UTC
(rev 6037)
+++ trunk/deluge/plugins/blocklist/blocklist/core.py 2009-12-17 23:08:55 UTC
(rev 6038)
@@ -93,10 +93,9 @@
update_now = False
if self.config["load_on_start"]:
if self.config["last_update"]:
- now = datetime.now()
last_update =
datetime.fromtimestamp(self.config["last_update"])
check_period = timedelta(days=self.config["check_after_days"])
- if not self.config["last_update"] or last_update + check_period <
now:
+ if not self.config["last_update"] or last_update + check_period <
datetime.now():
update_now = True
else:
self.use_cache = True
--
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.