Gentoo Archives: gentoo-commits

From: Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/
Date: Wed, 11 Jan 2012 03:59:31
Message-Id: 93db7e12b01cde9f29cc404a9ca8886143f3e988.arfrever@gentoo
1 commit: 93db7e12b01cde9f29cc404a9ca8886143f3e988
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Gentoo <DOT> Org>
3 AuthorDate: Wed Jan 11 03:57:23 2012 +0000
4 Commit: Arfrever Frehtes Taifersar Arahesis <arfrever <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 11 03:57:23 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=93db7e12
7
8 portage.debug.trace_handler.__init__(): Fix compatibility with Python 3.
9
10 ---
11 pym/portage/debug.py | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/pym/portage/debug.py b/pym/portage/debug.py
15 index ce642fe..ebf1a13 100644
16 --- a/pym/portage/debug.py
17 +++ b/pym/portage/debug.py
18 @@ -1,4 +1,4 @@
19 -# Copyright 1999-2011 Gentoo Foundation
20 +# Copyright 1999-2012 Gentoo Foundation
21 # Distributed under the terms of the GNU General Public License v2
22
23 import os
24 @@ -26,7 +26,7 @@ class trace_handler(object):
25 def __init__(self):
26 python_system_paths = []
27 for x in sys.path:
28 - if os.path.basename(x).startswith("python2."):
29 + if os.path.basename(x) == "python%s.%s" % sys.version_info[:2]:
30 python_system_paths.append(x)
31
32 self.ignore_prefixes = []