Skip to content

Commit

Permalink
Remove unnecessary bool() call
Browse files Browse the repository at this point in the history
Inequalities already return return a boolean. Coercing to a bool again
is a noop.

https://github.com/python-ldap/python-ldap/pull/135
  • Loading branch information
Jon Dufresne authored and Petr Viktorin committed Dec 18, 2017
1 parent 5197e58 commit be5a344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/ldap/ldapobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit be5a344

Please sign in to comment.