summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-05-06 12:11:12 -0700
committerZac Medico <zmedico@gentoo.org>2010-05-06 12:11:12 -0700
commit710cc824c3a4fd4317aa8999e45d5414fe08974a (patch)
tree286089fbb42f9457680d8fee1bbbf1a7a2afc1c5
parent7f54cb4aa5e5a4f7b003e6e07c2ce3b265ff4963 (diff)
downloadportage-710cc824c3a4fd4317aa8999e45d5414fe08974a.tar.gz
portage-710cc824c3a4fd4317aa8999e45d5414fe08974a.tar.bz2
portage-710cc824c3a4fd4317aa8999e45d5414fe08974a.zip
Eliminate redundant os.sep in vardbapi.getpath().
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index de583e7b5..5a98c7e06 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -870,7 +870,7 @@ class vardbapi(dbapi):
def getpath(self, mykey, filename=None):
# This is an optimized hotspot, so don't use unicode-wrapped
# os module and don't use os.path.join().
- rValue = self.root + _os.sep + VDB_PATH + _os.sep + mykey
+ rValue = self.root + VDB_PATH + _os.sep + mykey
if filename is not None:
# If filename is always relative, we can do just
# rValue += _os.sep + filename