1.1 --- a/tools/make_freebusy.py Thu Aug 06 22:00:11 2015 +0200
1.2 +++ b/tools/make_freebusy.py Thu Aug 06 22:00:45 2015 +0200
1.3 @@ -21,6 +21,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 +from codecs import getwriter
1.8 from imiptools.data import get_window_end, Object
1.9 from imiptools.dates import get_default_timezone
1.10 from imiptools.profile import Preferences
1.11 @@ -97,7 +98,8 @@
1.12 else:
1.13 store.set_freebusy_for_other(user, fb, participant)
1.14 else:
1.15 + f = getwriter("utf-8")(sys.stdout)
1.16 for item in fb:
1.17 - print "\t".join(item.as_tuple(strings_only=True))
1.18 + print >>f, "\t".join(item.as_tuple(strings_only=True))
1.19
1.20 # vim: tabstop=4 expandtab shiftwidth=4