summaryrefslogtreecommitdiff
path: root/calendar-cli.py
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2016-05-03 02:07:27 +0200
committerTobias Brox <tobias@redpill-linpro.com>2016-05-03 02:07:27 +0200
commit334f32a4cd01e6a5e461fdf4414028be1a2a2390 (patch)
tree3a70298ad85c80557ac5a1a0bdf538ddadc3c59e /calendar-cli.py
parentc1a635b1f6342d64b5b9afd916a47c889f917252 (diff)
downloadcalendar-cli-334f32a4cd01e6a5e461fdf4414028be1a2a2390.zip
one more unicode issue
Diffstat (limited to 'calendar-cli.py')
-rwxr-xr-xcalendar-cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index 60859f5..6e8fdeb 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -451,7 +451,7 @@ def calendar_agenda(caldav_conn, args):
break
event['uid'] = event['instance'].uid.value if hasattr(event['instance'], 'uid') else '<no uid>'
## TODO: this will probably break and is probably moot on python3?
- if hasattr(event['summary'], 'encode'):
+ if isinstance(event['summary'], unicode):
event['summary'] = event['summary'].encode('utf-8')
print(args.event_template.format(**event))