Make portage.cache.anydbm use absolute_import instead of the the v2.2_rc77
authorZac Medico <zmedico@gentoo.org>
Tue, 7 Sep 2010 00:54:11 +0000 (17:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 7 Sep 2010 00:54:11 +0000 (17:54 -0700)
__import__() approach it currently uses.

pym/portage/cache/anydbm.py

index dcfff3fb823d6fd49c732bf975666c849cceaa44..1cf3775eba012e113b4a342db7783687769beab0 100644 (file)
@@ -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