summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-06 17:54:11 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-06 17:54:11 -0700
commitdd0d6deeefe8e649ddd0950063ef036382bc4ea8 (patch)
treea176d133e3e01dffa33449770a229e7660210be2
parent9ae70ccd959e5584ccf4f972b0387240ccdd3898 (diff)
downloadportage-dd0d6deeefe8e649ddd0950063ef036382bc4ea8.tar.gz
portage-dd0d6deeefe8e649ddd0950063ef036382bc4ea8.tar.bz2
portage-dd0d6deeefe8e649ddd0950063ef036382bc4ea8.zip
Make portage.cache.anydbm use absolute_import instead of the thev2.2_rc77
__import__() approach it currently uses.
-rw-r--r--pym/portage/cache/anydbm.py8
1 files 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