Skip to content

Commit 41fd1a9

Browse files
committed
Replace "is not" against empty string with "!="
Silences warning (or perhaps legit error, now)
1 parent c4e4ef6 commit 41fd1a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/asyncio_net/net_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def connect(self, timeout):
227227
break
228228
# This may happen in the `V1_0` protocol where we send two requests as
229229
# an optimization, then need to read each separately
230-
if request is not "":
230+
if request != "":
231231
self._streamwriter.write(request)
232232

233233
response = yield from asyncio.wait_for(

0 commit comments

Comments
 (0)