Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c040323

Browse files
committed
Minor update
1 parent df0f08b commit c040323

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/utils/xmlrpc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def __init__(self, port):
3131

3232
self.server = SimpleXMLRPCServer(addr=("", self.port), logRequests=False, allow_none=True, encoding=UNICODE_ENCODING)
3333
for _ in dir(self):
34+
if _.startswith("serve"):
35+
continue
3436
if not _.startswith('_') and isinstance(getattr(self, _), types.MethodType):
3537
self.server.register_function(getattr(self, _))
3638
logger.info("Registering RPC methods: %s" % str(self.server.system_listMethods()).strip("[]"))

0 commit comments

Comments
 (0)