From 87eaae1c3e4ec5d15ba0212606fc5b42e6464f9b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 11 Nov 2012 20:22:54 -0500 Subject: [PATCH] metadata: use print() in PackageFormatter doctest for Python 3 compatibility --- pym/gentoolkit/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2