Skip to content

Commit

Permalink
Simplify assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
jspricke committed Oct 6, 2022
1 parent d5fb6ee commit 2bbf537
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions remind.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ def __init__(
startdate -- the date to start parsing, will be passed to remind
month -- how many month to parse, will be passed to remind -s
"""
self._filename = filename if filename else expanduser("~/.reminders")
self._localtz = localtz if localtz else tz.gettz()
self._startdate = startdate if startdate else date.today() - timedelta(weeks=12)
self._filename = filename or expanduser("~/.reminders")
self._localtz = localtz or tz.gettz()
self._startdate = startdate or date.today() - timedelta(weeks=12)
self._month = month
self._alarm = alarm if alarm else timedelta(minutes=-10)
self._alarm = alarm or timedelta(minutes=-10)
self._lock = Lock()
self._reminders: dict[str, dict[str, Any]] = {}
self._mtime = 0.0
self._fqdn = fqdn if fqdn else getfqdn()
self._fqdn = fqdn or getfqdn()

def _parse_remind(
self, filename: str, lines: str = ""
Expand Down

0 comments on commit 2bbf537

Please sign in to comment.