diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-30 17:58:16 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-08-30 18:05:02 -0700 |
commit | 81f5cee2188dcbd6b92e6b570c2c98961588a17a (patch) | |
tree | ce2df475307ea27a4e85b3d4aeea4ed4408293af /mesonbuild/interpreter/interpreterobjects.py | |
parent | 43f942be34433c0668572fa830bd56c61f612870 (diff) | |
download | meson-81f5cee2188dcbd6b92e6b570c2c98961588a17a.zip meson-81f5cee2188dcbd6b92e6b570c2c98961588a17a.tar.gz meson-81f5cee2188dcbd6b92e6b570c2c98961588a17a.tar.bz2 |
interpreter: rename EnvironmentVariablesObject -> EnvironmentVariablesHolder
This is more consistent with other Holder classes
Diffstat (limited to 'mesonbuild/interpreter/interpreterobjects.py')
-rw-r--r-- | mesonbuild/interpreter/interpreterobjects.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index bc9d8e7..262ff87 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -238,7 +238,7 @@ class RunProcess(MesonInterpreterObject): _ENV_SEPARATOR_KW = KwargInfo('separator', str, default=os.pathsep) -class EnvironmentVariablesObject(ObjectHolder[build.EnvironmentVariables], MutableInterpreterObject): +class EnvironmentVariablesHolder(ObjectHolder[build.EnvironmentVariables], MutableInterpreterObject): def __init__(self, obj: build.EnvironmentVariables, interpreter: 'Interpreter'): super().__init__(obj, interpreter) @@ -251,9 +251,9 @@ class EnvironmentVariablesObject(ObjectHolder[build.EnvironmentVariables], Mutab repr_str = "<{0}: {1}>" return repr_str.format(self.__class__.__name__, self.held_object.envvars) - def __deepcopy__(self, memo: T.Dict[str, object]) -> 'EnvironmentVariablesObject': + def __deepcopy__(self, memo: T.Dict[str, object]) -> 'EnvironmentVariablesHolder': # Avoid trying to copy the intepreter - return EnvironmentVariablesObject(copy.deepcopy(self.held_object), self.interpreter) + return EnvironmentVariablesHolder(copy.deepcopy(self.held_object), self.interpreter) def warn_if_has_name(self, name: str) -> None: # Multiple append/prepend operations was not supported until 0.58.0. |