move code into util.py

This commit is contained in:
Mike Fährmann
2017-03-28 13:12:44 +02:00
parent e3212dd98f
commit 841fd50242
12 changed files with 164 additions and 185 deletions

View File

@@ -8,7 +8,7 @@
import json
import hashlib
from . import extractor, downloader, config, util, path, output, exception
from . import extractor, downloader, config, util, output, exception
from .extractor.message import Message
@@ -105,7 +105,7 @@ class DownloadJob(Job):
def __init__(self, url):
Job.__init__(self, url)
self.pathfmt = path.PathFormat(self.extractor)
self.pathfmt = util.PathFormat(self.extractor)
self.downloaders = {}
self.queue = None
self.out = output.select()