Remove support for overriding the class name

Nothing in Salt uses this now.
This commit is contained in:
Erik Johnson 2018-08-29 14:55:01 -05:00
parent 82a8b731f0
commit a4cb35b7c5
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -203,10 +203,14 @@ class NamespacedDictWrapper(collections.MutableMapping, dict):
self.pre_keys = (pre_keys,)
else:
self.pre_keys = pre_keys
if override_name:
self.__class__.__module__ = 'salt'
# __name__ can't be assigned a unicode
self.__class__.__name__ = str(override_name) # future lint: disable=blacklisted-function
if override_name is not None:
import salt.utils.versions
salt.utils.versions.warn_until(
'Neon',
'Overriding the class name is no longer supported. Please '
'remove the override_name argument before it is removed in '
'Salt Sodium.'
)
super(NamespacedDictWrapper, self).__init__(self._dict())
def _dict(self):