Syntax fix (#886)

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

This works otherwise due to an implementation quirk of cPython.
This commit is contained in:
MinchinWeb 2020-03-22 13:09:25 -06:00
parent 7a328d0fe3
commit 59624a4941

View file

@ -57,7 +57,7 @@ def parse(
except TypeError: except TypeError:
return None return None
if flag is 1: # Date found, but no time. Use the default time. if flag == 1: # Date found, but no time. Use the default time.
date = datetime( date = datetime(
*date[:3], *date[:3],
hour=23 if inclusive else default_hour or 0, hour=23 if inclusive else default_hour or 0,