From: W. Trevor King Date: Mon, 12 Nov 2012 02:05:13 +0000 (-0500) Subject: helpers: use print() in ChangeLog doctest for Python 3 compatibility X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cfe01271c3c64f290acf3ce3ae42eb55887e295d;p=gentoolkit.git helpers: use print() in ChangeLog doctest for Python 3 compatibility Also update the expected portage.latest. --- diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py index 90e0939..706b526 100644 --- a/pym/gentoolkit/helpers.py +++ b/pym/gentoolkit/helpers.py @@ -51,11 +51,12 @@ class ChangeLog(object): Example usage: >>> from gentoolkit.helpers import ChangeLog >>> portage = ChangeLog('/usr/portage/sys-apps/portage/ChangeLog') - >>> print portage.latest.strip() - *portage-2.2_rc50 (15 Nov 2009) - - 15 Nov 2009; Zac Medico +portage-2.2_rc50.ebuild: - 2.2_rc50 bump. This includes all fixes in 2.1.7.5. + >>> print(portage.latest.strip()) + *portage-2.2.0_alpha142 (26 Oct 2012) + + 26 Oct 2012; Zac Medico +portage-2.2.0_alpha142.ebuild: + 2.2.0_alpha142 version bump. This includes all of the fixes in 2.1.11.31. Bug + #210077 tracks all bugs fixed since portage-2.1.x. >>> len(portage.full) 75 >>> len(portage.entries_matching_range(