Skip to content

Commit

Permalink
Cleaned style of async_.py by removing == True since if statements …
Browse files Browse the repository at this point in the history
…already evaluate the expression to see if it is true
  • Loading branch information
comrumino committed Sep 4, 2021
1 parent 8518e3b commit bc8f022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpyc/core/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def wait(self):
expiry set, and the result did not arrive within that timeout,
an :class:`AsyncResultTimeout` exception is raised"""
while not self._is_ready.is_set() and not self._ttl.expired():
if self._conn.serve(self._ttl) == True:
if self._conn.serve(self._ttl):
# we received a response, wait for the completion call
self._is_ready.wait()
if not self._is_ready.is_set():
Expand Down

0 comments on commit bc8f022

Please sign in to comment.