Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use if/else not and/or to avoid dividing by zero.
The and/or idiom doesn't work here because "x and 0" is always False, so the or branch gets evaluated. Fixes #8.
- Loading branch information