mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Remove support for overriding the class name
Nothing in Salt uses this now.
This commit is contained in:
parent
82a8b731f0
commit
a4cb35b7c5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user