mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
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:
parent
7a328d0fe3
commit
59624a4941
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue