From 5898fb094c9ad3b4d17c16fd151521c0bb52652f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 5 Nov 2016 12:10:25 +0000 Subject: Revert "interpreter: Add a way to copy and environment object" This reverts commit fcaf319e49aaaf548a814977c4c5e864fa5a4f77. This should be done automatically on assignment, see #831 --- mesonbuild/interpreter.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 3044d51..8c6e2cd 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -27,7 +27,6 @@ import os, sys, subprocess, shutil, uuid, re from functools import wraps import importlib -import copy run_depr_printed = False @@ -189,7 +188,6 @@ class EnvironmentVariablesHolder(InterpreterObject): self.methods.update({'set': self.set_method, 'append': self.append_method, 'prepend' : self.prepend_method, - 'copy' : self.copy_method, }) @stringArgs @@ -212,9 +210,6 @@ class EnvironmentVariablesHolder(InterpreterObject): def prepend_method(self, args, kwargs): self.add_var(self.held_object.prepend, args, kwargs) - def copy_method(self, args, kwargs): - return copy.deepcopy(self) - class ConfigurationDataHolder(InterpreterObject): def __init__(self): -- cgit v1.1