From be5a3445ac8bf8460be858160e27ea9ca11b641e Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 18 Dec 2017 04:18:41 -0800 Subject: [PATCH] Remove unnecessary bool() call Inequalities already return return a boolean. Coercing to a bool again is a noop. https://github.com/python-ldap/python-ldap/pull/135 --- 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 4aa61db..bc78fb7 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: