mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 05:23:53 +02:00
Put BonJour plugin in its own file
This commit is contained in:
parent
f0cedba6c7
commit
ceb514dc62
3 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
from calibre import as_unicode
|
||||
from calibre.constants import plugins, iswindows
|
||||
from calibre.srv.loop import ServerLoop
|
||||
from calibre.srv.plugins import BonJour
|
||||
from calibre.srv.bonjour import BonJour
|
||||
from calibre.srv.opts import opts_to_parser
|
||||
from calibre.srv.http_response import create_http_handler
|
||||
from calibre.srv.handler import Handler
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ def specialize(server):
|
|||
|
||||
def test_bonjour(self):
|
||||
'Test advertising via BonJour'
|
||||
from calibre.srv.plugins import BonJour
|
||||
from calibre.srv.bonjour import BonJour
|
||||
from calibre.utils.Zeroconf import Zeroconf
|
||||
b = BonJour()
|
||||
with TestServer(lambda data:(data.path[0] + data.read()), plugins=(b,), shutdown_timeout=5) as server:
|
||||
|
|
|
|||
Loading…
Reference in a new issue