From: W. Trevor King Date: Sun, 11 Nov 2012 21:14:13 +0000 (-0500) Subject: package: use print() in PackageFormatter doctest for Python 3 compatibility X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1a9de99349364843e3427529e979725af19c350;p=gentoolkit.git package: use print() in PackageFormatter doctest for Python 3 compatibility --- diff --git a/pym/gentoolkit/package.py b/pym/gentoolkit/package.py index 0b51f4e..682c53a 100644 --- a/pym/gentoolkit/package.py +++ b/pym/gentoolkit/package.py @@ -425,7 +425,7 @@ class PackageFormatter(object): ... # Only print packages that are installed and from the Portage ... # tree ... if set('IP').issubset(pkg.location): - ... print pkg + ... print(pkg) ... [IP-] [ ] sys-devel/gcc-4.3.2-r3 (4.3)