metadata: use print() in PackageFormatter doctest for Python 3 compatibility
authorW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 01:22:54 +0000 (20:22 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 01:22:54 +0000 (20:22 -0500)
pym/gentoolkit/metadata.py

index 9bcc17bc6487f320613e83b71265fe8971a09e8c..352fbefedb3840b2feb1b76dc5118fcd30e363ef 100644 (file)
                >>> 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