diff options
Diffstat (limited to 'src/twisted')
-rw-r--r-- | src/twisted/plugins/git_tftpd_plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/twisted/plugins/git_tftpd_plugin.py b/src/twisted/plugins/git_tftpd_plugin.py index 1d2b53e..a58ffed 100644 --- a/src/twisted/plugins/git_tftpd_plugin.py +++ b/src/twisted/plugins/git_tftpd_plugin.py @@ -6,7 +6,7 @@ from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet -from zope.interface import implements +from zope.interface import implementer class Options(usage.Options): optParameters = [ @@ -15,15 +15,15 @@ class Options(usage.Options): ] +@implementer(IServiceMaker, IPlugin) class MyServiceMaker(object): - implements(IServiceMaker, IPlugin) tapname = 'git-tftpd' description = 'A tftp server, that commits the files into a git repo.' options = Options def makeService(self, options): if options['repo'] is None: - raise usage.UsageError, 'Missing required argument' + raise usage.UsageError('Missing required argument') backend = GitBackend(options['repo']) return internet.UDPServer(int(options["port"]), TFTPProtocol(backend)) |