summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2020-06-08 00:17:28 +0200
committerTobias Brox <tobias@redpill-linpro.com>2020-06-08 00:17:28 +0200
commit97223fd1e4341fba483a76a562dc343065ebecfb (patch)
tree7e2b2fe78dc97768a056923d5722bcb8f394672b
parent18c896ad4eb7b6c2243f324bba3ae48cbf004309 (diff)
downloadcalendar-cli-97223fd1e4341fba483a76a562dc343065ebecfb.zip
whitespace changes
-rwxr-xr-xcalendar-cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index f9d94e2..7294040 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
"""
calendar-cli.py - high-level cli against caldav servers
@@ -507,8 +507,8 @@ def calendar_agenda(caldav_conn, args):
dtstart = tzinfo.localize(dtstart)
## convert into timezone given in args:
dtstart = dtstart.astimezone(_tz(args.timezone))
-
events.append({'dtstart': dtstart, 'instance': event})
+
## changed to use the "key"-parameter at 2019-09-18, as needed for python3.
## this will probably cause regression on sufficiently old versions of python
events.sort(key=lambda a: a['dtstart'])