wilsonfreitas / python-bizdays

Business days calculations and utilities
http://wilsonfreitas.github.io/python-bizdays/
MIT License
80 stars 34 forks source link

Removed identity comparison with empty string #27

Closed fernandosavio closed 3 years ago

fernandosavio commented 3 years ago

When testing if a variable contains an empty string, we should use a comparison operator instead of the identity operator. Or else a SyntaxWarning is raised (tested on Python 3.8).

SyntaxWarning: "is" with a literal. Did you mean "=="?