Make apport hook compatible with Python 3.

This commit is contained in:
Colin Watson 2012-05-10 10:39:06 -07:00
parent f9e6bf4bc2
commit 16a55758f1
2 changed files with 9 additions and 3 deletions

View File

@ -8,6 +8,9 @@ Free Software Foundation; either version 3 of the License, or (at your
option) any later version. See http://www.gnu.org/copyleft/gpl.html for
the full text of the license.
'''
from __future__ import print_function
from apport.hookutils import *
import os
import subprocess
@ -88,6 +91,6 @@ if __name__ == '__main__':
r = {}
r['ProblemType'] = 'Package'
add_info(r)
for k, v in r.iteritems():
print '%s: "%s"' % (k, v)
print "========================================"
for k, v in r.items():
print('%s: "%s"' % (k, v))
print("========================================")

3
debian/changelog vendored
View File

@ -6,6 +6,9 @@ grub2 (1.99-22) UNRELEASED; urgency=low
* Traditional Chinese (Vincent Chen).
* Vietnamese (Hai Lang).
[ Colin Watson ]
* Make apport hook compatible with Python 3.
-- Christian Perrier <bubulle@debian.org> Fri, 06 Apr 2012 20:29:25 +0200
grub2 (1.99-21) unstable; urgency=low