From 58d2352359ed6cc945799a3ef1c07341f8711c4e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 19 Feb 2010 09:12:30 +0000 Subject: Remove the deprecated 'clone' parameter to the binarytree constructor. svn path=/main/trunk/; revision=15375 --- pym/portage/dbapi/bintree.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 3062e4bfe..f3b7b00de 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -150,20 +150,8 @@ class bindbapi(fakedbapi): class binarytree(object): "this tree scans for a list of all packages available in PKGDIR" - def __init__(self, root, pkgdir, virtual=None, settings=None, clone=None): - if clone: - writemsg("binartree.__init__(): deprecated " + \ - "use of clone parameter\n", noiselevel=-1) - # XXX This isn't cloning. It's an instance of the same thing. - self.root = clone.root - self.pkgdir = clone.pkgdir - self.dbapi = clone.dbapi - self.populated = clone.populated - self.tree = clone.tree - self.remotepkgs = clone.remotepkgs - self.invalids = clone.invalids - self.settings = clone.settings - else: + def __init__(self, root, pkgdir, virtual=None, settings=None): + if True: self.root = root #self.pkgdir=settings["PKGDIR"] self.pkgdir = normalize_path(pkgdir) -- cgit v1.2.3-1-g7c22