From ee11bf53345f6b79df0bc3af6cebc54705ef4522 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 17 Dec 2017 08:12:31 -0800 Subject: [PATCH] Remove unnecessary bool() call Inequalities already return return a boolean. Coercing to a bool again is a noop. --- Lib/ldap/ldapobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ldap/ldapobject.py b/Lib/ldap/ldapobject.py index 4aa61dbb..bc78fb7f 100644 --- a/Lib/ldap/ldapobject.py +++ b/Lib/ldap/ldapobject.py @@ -32,7 +32,7 @@ from ldap import LDAPError -PY2 = bool(sys.version_info[0] <= 2) +PY2 = sys.version_info[0] <= 2 if PY2: text_type = unicode else: