From dd0d6deeefe8e649ddd0950063ef036382bc4ea8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 6 Sep 2010 17:54:11 -0700 Subject: Make portage.cache.anydbm use absolute_import instead of the the __import__() approach it currently uses. --- pym/portage/cache/anydbm.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pym/portage/cache/anydbm.py b/pym/portage/cache/anydbm.py index dcfff3fb8..1cf3775eb 100644 --- a/pym/portage/cache/anydbm.py +++ b/pym/portage/cache/anydbm.py @@ -1,9 +1,11 @@ -# Copyright: 2005 Gentoo Foundation +# Copyright 2005-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 # Author(s): Brian Harring (ferringb@gentoo.org) -# License: GPL2 + +from __future__ import absolute_import try: - anydbm_module = __import__("anydbm") + import anydbm as anydbm_module except ImportError: # python 3.x import dbm as anydbm_module -- cgit v1.2.3-1-g7c22