Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH] movefile: enable absolute_import for Python 2 (bug 550886)
Date: Sun, 31 May 2015 20:54:07
Message-Id: 1433105630-23454-1-git-send-email-zmedico@gentoo.org
1 Since commit 1032cbf4c218741df1c57767fead2d00cc6321d9, with Python 2,
2 movefile imports portage.util.xattr instead of xattr. Fix it by
3 enabling absolute_import.
4
5 Fixes: 1032cbf4c218 ("quickpkg: support FEATURES=xattr (bug 550006)")
6 X-Gentoo-Bug: 550886
7 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=550886
8 ---
9 pym/portage/util/movefile.py | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py
13 index d00f624..1000569 100644
14 --- a/pym/portage/util/movefile.py
15 +++ b/pym/portage/util/movefile.py
16 @@ -1,7 +1,7 @@
17 # Copyright 2010-2013 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19
20 -from __future__ import unicode_literals
21 +from __future__ import absolute_import, unicode_literals
22
23 __all__ = ['movefile']
24
25 --
26 2.3.5

Replies