From: Zac Medico Date: Tue, 24 Aug 2010 18:24:28 +0000 (-0700) Subject: Remove LicenseManager.__deepcopy__() since the default implementation X-Git-Tag: v2.2_rc69~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcf72d9ff679b7889f79abb7cadd0234df21cfcc;p=portage.git Remove LicenseManager.__deepcopy__() since the default implementation seems to work fine. --- diff --git a/pym/portage/package/ebuild/_config/LicenseManager.py b/pym/portage/package/ebuild/_config/LicenseManager.py index 6350a3343..2bedb58ba 100644 --- a/pym/portage/package/ebuild/_config/LicenseManager.py +++ b/pym/portage/package/ebuild/_config/LicenseManager.py @@ -5,8 +5,6 @@ __all__ = ( 'LicenseManager', ) -from copy import deepcopy - from portage import os from portage.dep import ExtendedAtomDict, use_reduce from portage.exception import InvalidDependString @@ -26,18 +24,6 @@ class LicenseManager(object): self._plicensedict = ExtendedAtomDict(dict) self._undef_lic_groups = set() - def __deepcopy__(self, memo=None): - if memo is None: - memo = {} - result = self.__class__() - memo[id(self)] = result - result._accept_license_str = deepcopy(self._accept_license_str, memo) - result._accept_license = deepcopy(self._accept_license, memo) - result._plicensedict = deepcopy(self._plicensedict, memo) - result._license_groups = deepcopy(self._license_groups, memo) - result._undef_lic_groups = deepcopy(self._undef_lic_groups, memo) - return result - def read_config_files(self, abs_user_config): licdict = grabdict_package(os.path.join( abs_user_config, "package.license"), recursive=1, allow_wildcard=True)