From cfe01271c3c64f290acf3ce3ae42eb55887e295d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 11 Nov 2012 21:05:13 -0500 Subject: [PATCH] helpers: use print() in ChangeLog doctest for Python 3 compatibility Also update the expected portage.latest. --- pym/gentoolkit/helpers.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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( -- 2.26.2