Skip to content

Commit 041dc5d

Browse files
asyncio_net/net_asyncio.py: update for SyntaxWarning: "is not" with a literal. Did you mean "!="?
1 parent e08c6a4 commit 041dc5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rethinkdb/asyncio_net/net_asyncio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ async def connect(self, timeout):
234234
break
235235
# This may happen in the `V1_0` protocol where we send two requests as
236236
# an optimization, then need to read each separately
237-
if request is not "":
237+
# if request is not "": # SyntaxWarning: "is not" with a literal. Did you mean "!="?
238+
if request != "":
238239
self._streamwriter.write(request)
239240

240241
# response = yield from asyncio.wait_for(

0 commit comments

Comments
 (0)