diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2016-05-03 02:07:27 +0200 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2016-05-03 02:07:27 +0200 |
commit | 334f32a4cd01e6a5e461fdf4414028be1a2a2390 (patch) | |
tree | 3a70298ad85c80557ac5a1a0bdf538ddadc3c59e /calendar-cli.py | |
parent | c1a635b1f6342d64b5b9afd916a47c889f917252 (diff) | |
download | calendar-cli-334f32a4cd01e6a5e461fdf4414028be1a2a2390.zip |
one more unicode issue
Diffstat (limited to 'calendar-cli.py')
-rwxr-xr-x | calendar-cli.py | 2 |
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)) |