This is an automated email from the git hooks/post-receive script. yoh pushed a commit to branch master in repository python-mne.
commit 77f639e704ac38f5cbafc89f076894ed0440cb7c Author: Yaroslav Halchenko <[email protected]> Date: Mon Sep 22 11:08:19 2014 +0200 added patch changeset_4a1b139e46d9b975188c74eda8e6cc74904636e1.diff to "cherry-pick" 4a1b139e46d9b975188c74eda8e6cc74904636e1 (BF: explicitly encode to UTF8 when saving report to a file) --- ...hangeset_4a1b139e46d9b975188c74eda8e6cc74904636e1.diff | 15 +++++++++++++++ debian/patches/series | 1 + 2 files changed, 16 insertions(+) diff --git a/debian/patches/changeset_4a1b139e46d9b975188c74eda8e6cc74904636e1.diff b/debian/patches/changeset_4a1b139e46d9b975188c74eda8e6cc74904636e1.diff new file mode 100644 index 0000000..488f1c1 --- /dev/null +++ b/debian/patches/changeset_4a1b139e46d9b975188c74eda8e6cc74904636e1.diff @@ -0,0 +1,15 @@ +From: Yaroslav Halchenko <[email protected]> +Subject: BF: explicitly encode to UTF8 when saving report to a file + Otherwise, if it ended up being a unicode, saving might fail + +--- a/mne/report.py ++++ b/mne/report.py +@@ -832,7 +832,7 @@ class Report(object): + if overwrite or not op.isfile(fname): + logger.info('Saving report to location %s' % fname) + fobj = open(fname, 'w') +- fobj.write(_fix_global_ids(''.join(self.html))) ++ fobj.write(_fix_global_ids(''.join(self.html)).encode('utf8')) + fobj.close() + + # remove header, TOC and footer to allow more saves diff --git a/debian/patches/series b/debian/patches/series index 87a6838..051910d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ +changeset_4a1b139e46d9b975188c74eda8e6cc74904636e1.diff changeset_9c7ef6d10f1f767b742525ea31e42a65a0469327.diff debian_paths -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
