From: W. Trevor King Date: Mon, 12 Nov 2012 01:22:54 +0000 (-0500) Subject: metadata: use print() in PackageFormatter doctest for Python 3 compatibility X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=87eaae1c3e4ec5d15ba0212606fc5b42e6464f9b;p=gentoolkit.git metadata: use print() in PackageFormatter doctest for Python 3 compatibility --- diff --git a/pym/gentoolkit/metadata.py b/pym/gentoolkit/metadata.py index 9bcc17b..352fbef 100644 --- a/pym/gentoolkit/metadata.py +++ b/pym/gentoolkit/metadata.py @@ -14,11 +14,11 @@ >>> pkg_md.herds() ['no-herd'] >>> for maint in pkg_md.maintainers(): - ... print "{0} ({1})".format(maint.email, maint.name) + ... print('{0} ({1})'.format(maint.email, maint.name)) ... nixphoeni@gentoo.org (Joe Sapp) >>> for flag in pkg_md.use(): - ... print flag.name, "->", flag.description + ... print(flag.name, '->', flag.description) ... rtf -> Enable export to RTF gnome-print -> Enable printing support using gnome-print