* [gentoo-portage-dev] [PATCH] movefile: enable absolute_import for Python 2 (bug 550886)
@ 2015-05-31 20:53 Zac Medico
2015-06-11 7:16 ` Brian Dolbec
0 siblings, 1 reply; 2+ messages in thread
From: Zac Medico @ 2015-05-31 20:53 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
Since commit 1032cbf4c218741df1c57767fead2d00cc6321d9, with Python 2,
movefile imports portage.util.xattr instead of xattr. Fix it by
enabling absolute_import.
Fixes: 1032cbf4c218 ("quickpkg: support FEATURES=xattr (bug 550006)")
X-Gentoo-Bug: 550886
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=550886
---
pym/portage/util/movefile.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py
index d00f624..1000569 100644
--- a/pym/portage/util/movefile.py
+++ b/pym/portage/util/movefile.py
@@ -1,7 +1,7 @@
# Copyright 2010-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-from __future__ import unicode_literals
+from __future__ import absolute_import, unicode_literals
__all__ = ['movefile']
--
2.3.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] movefile: enable absolute_import for Python 2 (bug 550886)
2015-05-31 20:53 [gentoo-portage-dev] [PATCH] movefile: enable absolute_import for Python 2 (bug 550886) Zac Medico
@ 2015-06-11 7:16 ` Brian Dolbec
0 siblings, 0 replies; 2+ messages in thread
From: Brian Dolbec @ 2015-06-11 7:16 UTC (permalink / raw
To: gentoo-portage-dev
On Sun, 31 May 2015 13:53:50 -0700
Zac Medico <zmedico@gentoo.org> wrote:
> Since commit 1032cbf4c218741df1c57767fead2d00cc6321d9, with Python 2,
> movefile imports portage.util.xattr instead of xattr. Fix it by
> enabling absolute_import.
>
> Fixes: 1032cbf4c218 ("quickpkg: support FEATURES=xattr (bug 550006)")
> X-Gentoo-Bug: 550886
> X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=550886
> ---
> pym/portage/util/movefile.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pym/portage/util/movefile.py
> b/pym/portage/util/movefile.py index d00f624..1000569 100644
> --- a/pym/portage/util/movefile.py
> +++ b/pym/portage/util/movefile.py
> @@ -1,7 +1,7 @@
> # Copyright 2010-2013 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
>
> -from __future__ import unicode_literals
> +from __future__ import absolute_import, unicode_literals
>
> __all__ = ['movefile']
>
confirmation of approval... already pushed ;)
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-11 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-31 20:53 [gentoo-portage-dev] [PATCH] movefile: enable absolute_import for Python 2 (bug 550886) Zac Medico
2015-06-11 7:16 ` Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox