Mercurial > libervia-pubsub
diff twisted/plugins/idavoll.py @ 192:a219fe70a762
Use ServiceMaker to setup twistd plugins, if available.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Fri, 30 May 2008 09:56:08 +0000 |
parents | 5191ba7c4df8 |
children | 564ae55219e1 |
line wrap: on
line diff
--- a/twisted/plugins/idavoll.py Sat May 17 18:31:31 2008 +0000 +++ b/twisted/plugins/idavoll.py Fri May 30 09:56:08 2008 +0000 @@ -1,9 +1,12 @@ # Copyright (c) 2003-2006 Ralph Meijer # See LICENSE for details. -from twisted.scripts.mktap import _tapHelper +try: + from twisted.application.service import ServiceMaker +except ImportError: + from twisted.scripts.mktap import _tapHelper as ServiceMaker -Idavoll = _tapHelper( +Idavoll = ServiceMaker( "Idavoll", "idavoll.tap", "Jabber Publish-Subscribe Service Component",