From: Zac Medico Date: Tue, 7 Sep 2010 00:54:11 +0000 (-0700) Subject: Make portage.cache.anydbm use absolute_import instead of the the X-Git-Tag: v2.2_rc77 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=dd0d6deeefe8e649ddd0950063ef036382bc4ea8;p=portage.git Make portage.cache.anydbm use absolute_import instead of the the __import__() approach it currently uses. --- 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