From: Zac Medico Date: Thu, 6 May 2010 19:11:12 +0000 (-0700) Subject: Eliminate redundant os.sep in vardbapi.getpath(). X-Git-Tag: v2.2_rc68~612 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=710cc824c3a4fd4317aa8999e45d5414fe08974a;p=portage.git Eliminate redundant os.sep in vardbapi.getpath(). --- 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