From ceb514dc62236f9f8099cdf0d0d1b4534c57aa5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 Jun 2015 14:01:33 +0530 Subject: [PATCH] Put BonJour plugin in its own file --- src/calibre/srv/{plugins.py => bonjour.py} | 0 src/calibre/srv/standalone.py | 2 +- src/calibre/srv/tests/loop.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/calibre/srv/{plugins.py => bonjour.py} (100%) diff --git a/src/calibre/srv/plugins.py b/src/calibre/srv/bonjour.py similarity index 100% rename from src/calibre/srv/plugins.py rename to src/calibre/srv/bonjour.py diff --git a/src/calibre/srv/standalone.py b/src/calibre/srv/standalone.py index 4cc8063483..74cc14419c 100644 --- a/src/calibre/srv/standalone.py +++ b/src/calibre/srv/standalone.py @@ -11,7 +11,7 @@ import sys, os 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 diff --git a/src/calibre/srv/tests/loop.py b/src/calibre/srv/tests/loop.py index e0475babd0..3728400f15 100644 --- a/src/calibre/srv/tests/loop.py +++ b/src/calibre/srv/tests/loop.py @@ -103,7 +103,7 @@ class LoopTest(BaseTest): 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: