diff options
author | Alexander <alex@spline.inf.fu-berlin.de> | 2020-09-15 21:26:53 +0200 |
---|---|---|
committer | Alexander <alex@spline.inf.fu-berlin.de> | 2020-09-15 21:26:53 +0200 |
commit | 3f7505a50bc6b9b14809f921e977b13c69319db2 (patch) | |
tree | c85f5838a9bd28f2b3dd4376ccbf44f3904a2bf5 /src/twisted/plugins | |
parent | 27b3ebd4eb55174e67c643d864458371ad89eb66 (diff) | |
download | git-tftpd-3f7505a50bc6b9b14809f921e977b13c69319db2.tar.gz git-tftpd-3f7505a50bc6b9b14809f921e977b13c69319db2.tar.bz2 git-tftpd-3f7505a50bc6b9b14809f921e977b13c69319db2.zip |
Diffstat (limited to 'src/twisted/plugins')
-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)) |