projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ae70cc
)
Make portage.cache.anydbm use absolute_import instead of the the
v2.2_rc77
author
Zac Medico
<zmedico@gentoo.org>
Tue, 7 Sep 2010 00:54:11 +0000
(17:54 -0700)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/cache/anydbm.py
b/pym/portage/cache/anydbm.py
index dcfff3fb823d6fd49c732bf975666c849cceaa44..1cf3775eba012e113b4a342db7783687769beab0 100644
(file)
--- 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