#2486 Unnecessary variable removed.
--- a/runtime/WampClient.py Tue Apr 10 09:54:22 2018 +0200
+++ b/runtime/WampClient.py Tue Apr 10 10:44:46 2018 +0200
@@ -101,17 +101,16 @@
global _WampSession
_WampSession = self
ID = self.config.extra["ID"]
- regoption = None
registerOptions = self.config.extra.get('registerOptions', None)
arguments = inspect.getargspec(types.RegisterOptions.__init__).args
validRegisterOptions = getValidOptins(registerOptions, arguments)
if validRegisterOptions:
- regoption = types.RegisterOptions(**validRegisterOptions)
+ registerOptions = types.RegisterOptions(**validRegisterOptions)
#print(_("Added custom register options"))
for name in ExposedCalls:
- yield self.register(GetCallee(name), u'.'.join((ID, name)), regoption)
+ yield self.register(GetCallee(name), u'.'.join((ID, name)), registerOptions)
for name in SubscribedEvents:
yield self.subscribe(GetCallee(name), unicode(name))