Skip to content

Commit

Permalink
Unicode excludes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vintitres committed Oct 1, 2012
1 parent 1b777ba commit 09c6353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnome-shell-google-calendar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import sys
import getopt
import time as ptime
Expand Down Expand Up @@ -240,7 +241,7 @@ def scheduler(self, timeout):

def get_excludes(self, filename):
'''Gets a list of calendars to exclude'''
with open(filename, 'r') as fp:
with codecs.open(filename, 'r', 'utf-8') as fp:
return frozenset(line.strip() for line in fp)

def get_calendars(self):
Expand Down

0 comments on commit 09c6353

Please sign in to comment.