diff twisted/plugins/pubsub.py @ 406:a58610ab2983

removed old code: - removed gateway which was an HTTP gateway inherited from Idavoll and which is not used is SàT Pubsub - removed memory_storage which has not been maintained since Idavoll and which is expected to be replaced by a sqlite-based backend - simplejson dependency is not used anymore
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 12:00:03 +0200
parents c56a728412f1
children ccb2a22ea0fc
line wrap: on
line diff
--- a/twisted/plugins/pubsub.py	Fri Aug 16 12:00:02 2019 +0200
+++ b/twisted/plugins/pubsub.py	Fri Aug 16 12:00:03 2019 +0200
@@ -166,7 +166,7 @@
 
     def postOptions(self):
         if self['backend'] not in ['pgsql', 'memory']:
-            raise usage.UsageError, "Unknown backend!"
+            raise usage.UsageError("Unknown backend!")
         if self['backend'] == 'memory':
             raise NotImplementedError('memory backend is not available at the moment')
 
@@ -211,8 +211,7 @@
                                            )
             st = Storage(dbpool)
         elif config['backend'] == 'memory':
-            from sat_pubsub.memory_storage import Storage
-            st = Storage()
+            raise NotImplementedError('memory backend is not available at the moment')
 
         bs = BackendService(st, config)
         bs.setName('backend')