[Reportbug-commits] [reportbug] 28/32: additional fixes for py3k
Sandro Tosi
morph at moszumanska.debian.org
Thu Dec 1 01:36:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit 3284e017dc962e94fa94b41848fd94213788965b
Author: Sandro Tosi <morph at debian.org>
Date: Wed Nov 30 19:58:23 2016 -0500
additional fixes for py3k
---
reportbug/ui/gtk2_ui.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index e07e102..95f70c5 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1185,7 +1185,7 @@ class EditorPage(Page):
def switch_out(self):
global report_message
report_message = self.get_value()[0]
- f = file(self.filename, "w")
+ f = open(self.filename, "w")
f.write(report_message)
f.close()
@@ -1204,7 +1204,6 @@ class EditorPage(Page):
self.report.set_subject(subject)
message = self.report.create_message(info)
- message = message.decode(self.charset, 'replace')
return(message, message != self.message)
def handle_first_info(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list