From 3f7505a50bc6b9b14809f921e977b13c69319db2 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 15 Sep 2020 21:26:53 +0200 Subject: Update to python3 --- src/twisted/plugins/git_tftpd_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/twisted') 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)) -- cgit v1.2.3-1-g7c22