milcent / benford_py

Python implementation of Benford's Law tests.
BSD 3-Clause "New" or "Revised" License
151 stars 52 forks source link

The code makes redundant equality comparisons (K == True) #3

Closed jfrfonseca closed 8 years ago

jfrfonseca commented 8 years ago

It is not recommended to make comparisons to True or False using == due to possible compilation differences in the binaries for the values of the booleans.

Use if K: or if not K instead