mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-17 19:11:06 +00:00
Fix for moved functions.
This commit is contained in:
parent
7cac6e6826
commit
da0ef8e8ea
1 changed files with 2 additions and 3 deletions
|
|
@ -37,10 +37,9 @@ from .settings import Settings
|
||||||
from .recentdocs import RecentDocumentModel
|
from .recentdocs import RecentDocumentModel
|
||||||
from .projects import openproject, saveproject, loadproject, ProjectExt
|
from .projects import openproject, saveproject, loadproject, ProjectExt
|
||||||
from .. import configuration, checker, director, get_link_pat, \
|
from .. import configuration, checker, director, get_link_pat, \
|
||||||
strformat, fileutil, LinkCheckerError, i18n
|
strformat, fileutil, LinkCheckerError, i18n, httputil
|
||||||
from ..containers import enum
|
from ..containers import enum
|
||||||
from .. import url as urlutil
|
from .. import url as urlutil
|
||||||
from ..checker import httpheaders
|
|
||||||
|
|
||||||
|
|
||||||
DocBaseUrl = "qthelp://bfk.app.linkchecker/doc/"
|
DocBaseUrl = "qthelp://bfk.app.linkchecker/doc/"
|
||||||
|
|
@ -534,7 +533,7 @@ Version 2 or later.
|
||||||
msg = u"An error occurred retreiving URL `%s': %s." % (url, info)
|
msg = u"An error occurred retreiving URL `%s': %s." % (url, info)
|
||||||
self.editor.setText(msg)
|
self.editor.setText(msg)
|
||||||
else:
|
else:
|
||||||
content_type = httpheaders.get_content_type(info)
|
content_type = httputil.get_content_type(info)
|
||||||
if not content_type:
|
if not content_type:
|
||||||
# read function for content type guessing
|
# read function for content type guessing
|
||||||
read = lambda: data
|
read = lambda: data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue