summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/asyncrpc/serv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/asyncrpc/serv.py b/bitbake/lib/bb/asyncrpc/serv.py
index 5cf45f908a..d2de4891b8 100644
--- a/bitbake/lib/bb/asyncrpc/serv.py
+++ b/bitbake/lib/bb/asyncrpc/serv.py
@@ -42,7 +42,7 @@ class AsyncServerConnection(object):
42 42
43 # Read protocol and version 43 # Read protocol and version
44 client_protocol = await self.reader.readline() 44 client_protocol = await self.reader.readline()
45 if client_protocol is None: 45 if not client_protocol:
46 return 46 return
47 47
48 (client_proto_name, client_proto_version) = client_protocol.decode('utf-8').rstrip().split() 48 (client_proto_name, client_proto_version) = client_protocol.decode('utf-8').rstrip().split()
@@ -59,7 +59,7 @@ class AsyncServerConnection(object):
59 # an empty line to signal the end of the headers 59 # an empty line to signal the end of the headers
60 while True: 60 while True:
61 line = await self.reader.readline() 61 line = await self.reader.readline()
62 if line is None: 62 if not line:
63 return 63 return
64 64
65 line = line.decode('utf-8').rstrip() 65 line = line.decode('utf-8').rstrip()