summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2024-12-04 12:30:10 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-06 23:33:54 +0000
commit2a34c96b8bfd89fdc3f89b1f072fe1b8b33da7a4 (patch)
treea5065dd3085a7eca204097d49bab87352691f5ec /bitbake
parentbfe176d6d57cfe934d7d8efc706247cf1f762702 (diff)
downloadpoky-2a34c96b8bfd89fdc3f89b1f072fe1b8b33da7a4.tar.gz
bitbake: server/xmlrpcserver: fix some warnings
+ Unnecessary parens + Missing imports + Instance attribute defined outside of __init__ (Bitbake rev: 0622b3df9a55ed66009f3bed47fbf52bb2122056) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/xmlrpcserver.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/xmlrpcserver.py b/bitbake/lib/bb/server/xmlrpcserver.py
index 04b0b17db1..fd4245a51a 100644
--- a/bitbake/lib/bb/server/xmlrpcserver.py
+++ b/bitbake/lib/bb/server/xmlrpcserver.py
@@ -14,6 +14,8 @@ from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
14import bb.server.xmlrpcclient 14import bb.server.xmlrpcclient
15 15
16import bb 16import bb
17import bb.cooker
18import bb.event
17 19
18# This request handler checks if the request has a "Bitbake-token" header 20# This request handler checks if the request has a "Bitbake-token" header
19# field (this comes from the client side) and compares it with its internal 21# field (this comes from the client side) and compares it with its internal
@@ -54,7 +56,7 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer):
54 56
55 def __init__(self, interface, cooker, parent): 57 def __init__(self, interface, cooker, parent):
56 # Use auto port configuration 58 # Use auto port configuration
57 if (interface[1] == -1): 59 if interface[1] == -1:
58 interface = (interface[0], 0) 60 interface = (interface[0], 0)
59 SimpleXMLRPCServer.__init__(self, interface, 61 SimpleXMLRPCServer.__init__(self, interface,
60 requestHandler=BitBakeXMLRPCRequestHandler, 62 requestHandler=BitBakeXMLRPCRequestHandler,
@@ -87,11 +89,12 @@ class BitBakeXMLRPCServer(SimpleXMLRPCServer):
87 def handle_requests(self): 89 def handle_requests(self):
88 self._handle_request_noblock() 90 self._handle_request_noblock()
89 91
90class BitBakeXMLRPCServerCommands(): 92class BitBakeXMLRPCServerCommands:
91 93
92 def __init__(self, server): 94 def __init__(self, server):
93 self.server = server 95 self.server = server
94 self.has_client = False 96 self.has_client = False
97 self.event_handle = None
95 98
96 def registerEventHandler(self, host, port): 99 def registerEventHandler(self, host, port):
97 """ 100 """