summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Page <james.page@ubuntu.com>2020-07-01 14:53:56 +0100
committerJakub Stasiak <jakub@stasiak.at>2020-07-01 17:11:22 +0200
commitaa962985691e3f909339ce83959b467815ffe7c1 (patch)
treede3e2bddbd93e32db1c63c851ba632ef33e91a6f
parent336773da5666cfaec4bd8ca167b5cd40073214a5 (diff)
downloadeventlet-aa962985691e3f909339ce83959b467815ffe7c1.tar.gz
Fix misc SyntaxWarning's under Python 3.8
Use '==' instead of 'is': eventlet/db_pool.py:78: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.max_age is 0 or self.max_idle is 0:
-rw-r--r--eventlet/db_pool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/eventlet/db_pool.py b/eventlet/db_pool.py
index 301c28c..45b1771 100644
--- a/eventlet/db_pool.py
+++ b/eventlet/db_pool.py
@@ -75,7 +75,7 @@ class BaseConnectionPool(Pool):
If max_age or max_idle is 0, _schedule_expiration likewise does nothing.
"""
- if self.max_age is 0 or self.max_idle is 0:
+ if self.max_age == 0 or self.max_idle == 0:
# expiration is unnecessary because all connections will be expired
# on put
return