From: Zac Medico Date: Tue, 2 Mar 2010 20:32:42 +0000 (-0000) Subject: Remove the deprecated 'clone' parameter from the portagetree constructor. X-Git-Tag: v2.1.8~117 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=763538c737d5aa6fd0c8b326f12c85b4e7b232d8;p=portage.git Remove the deprecated 'clone' parameter from the portagetree constructor. (trunk r15378) svn path=/main/branches/2.1.7/; revision=15605 --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 830cef4a5..a4cf16fc0 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -1176,7 +1176,7 @@ def close_portdbapi_caches(): i.close_caches() class portagetree(object): - def __init__(self, root="/", virtual=None, clone=None, settings=None): + def __init__(self, root="/", virtual=None, settings=None): """ Constructor for a PortageTree @@ -1184,19 +1184,11 @@ class portagetree(object): @type root: String/Path @param virtual: UNUSED @type virtual: No Idea - @param clone: Set this if you want a copy of Clone - @type clone: Existing portagetree Instance @param settings: Portage Configuration object (portage.settings) @type settings: Instance of portage.config """ - if clone: - writemsg("portagetree.__init__(): deprecated " + \ - "use of clone parameter\n", noiselevel=-1) - self.root = clone.root - self.portroot = clone.portroot - self.pkglines = clone.pkglines - else: + if True: self.root = root if settings is None: from portage import settings