diff --git a/debian/apport/source_grub2.py b/debian/apport/source_grub2.py index a6c5ac477..f41be553b 100644 --- a/debian/apport/source_grub2.py +++ b/debian/apport/source_grub2.py @@ -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("========================================") diff --git a/debian/changelog b/debian/changelog index 84e0a26b1..fb4d0a2a0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 06 Apr 2012 20:29:25 +0200 grub2 (1.99-21) unstable; urgency=low