Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 92c0450 commit 84459e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions persiantools/jdatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,7 @@ def __base_compare(self, other):
return (
0
if (y, m, d, h, m, s, ms) == (y2, m2, d2, h2, m2, s2, ms2)
else 1
if (y, m, d, h, m, s, ms) > (y2, m2, d2, h2, m2, s2, ms2)
else -1
else 1 if (y, m, d, h, m, s, ms) > (y2, m2, d2, h2, m2, s2, ms2) else -1
)

def _cmp(self, other, allow_mixed=False):
Expand Down

0 comments on commit 84459e2

Please sign in to comment.