mirror of
https://git.deluge-torrent.org/deluge
synced 2025-10-03 07:38:38 +00:00
Use (documented) formatdate over format_date_time
This commit is contained in:
parent
c19718b66a
commit
8238c63156
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from wsgiref.handlers import format_date_time
|
from email.utils import formatdate
|
||||||
from urlparse import urljoin
|
from urlparse import urljoin
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
headers = {}
|
headers = {}
|
||||||
if self.config["last_update"] and not self.force_download:
|
if self.config["last_update"] and not self.force_download:
|
||||||
headers['If-Modified-Since'] = format_date_time(self.config["last_update"])
|
headers['If-Modified-Since'] = formatdate(self.config["last_update"], usegmt=True)
|
||||||
|
|
||||||
log.debug("Attempting to download blocklist %s", url)
|
log.debug("Attempting to download blocklist %s", url)
|
||||||
log.debug("Sending headers: %s", headers)
|
log.debug("Sending headers: %s", headers)
|
||||||
|
|
|
@ -10,7 +10,7 @@ shutil.copy(python_path + "Scripts\deluge-web-script.py", python_path + "Scripts
|
||||||
shutil.copy(python_path + "Scripts\deluge-gtk-script.pyw", python_path + "Scripts\deluge-gtk.py")
|
shutil.copy(python_path + "Scripts\deluge-gtk-script.pyw", python_path + "Scripts\deluge-gtk.py")
|
||||||
shutil.copy(python_path + "Scripts\deluge-console-script.py", python_path + "Scripts\deluge-console.py")
|
shutil.copy(python_path + "Scripts\deluge-console-script.py", python_path + "Scripts\deluge-console.py")
|
||||||
|
|
||||||
includes=("libtorrent", "gzip", "zipfile", "re", "socket", "struct", "cairo", "pangocairo", "atk", "pango", "wsgiref.handlers", "twisted.internet.utils", "gio", "gtk.glade")
|
includes=("libtorrent", "gzip", "zipfile", "re", "socket", "struct", "cairo", "pangocairo", "atk", "pango", "twisted.internet.utils", "gio", "gtk.glade")
|
||||||
excludes=("numpy", "OpenGL", "psyco", "win32ui")
|
excludes=("numpy", "OpenGL", "psyco", "win32ui")
|
||||||
|
|
||||||
dst = "..\\build-win32\\deluge-bbfreeze-" + build_version + "\\"
|
dst = "..\\build-win32\\deluge-bbfreeze-" + build_version + "\\"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue