diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-07-08 14:43:48 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-07-08 14:45:07 +0200 |
commit | d23697e96b91acc4fedbaaf2e3a987fd950bc0c3 (patch) | |
tree | b5be817f26dc1dff925a579a9158205754984bc6 | |
parent | 87137def3e157909bfa571ce8a4c57a20f02d91c (diff) | |
download | astroid-git-d23697e96b91acc4fedbaaf2e3a987fd950bc0c3.tar.gz |
Remove the copying of extra_context, since the object is already not mutated. Discovered during #588
-rw-r--r-- | astroid/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/context.py b/astroid/context.py index a6ca9b7c..4599b5c7 100644 --- a/astroid/context.py +++ b/astroid/context.py @@ -94,7 +94,7 @@ class InferenceContext: clone = InferenceContext(copy.copy(self.path), inferred=self.inferred) clone.callcontext = self.callcontext clone.boundnode = self.boundnode - clone.extra_context = copy.copy(self.extra_context) + clone.extra_context = self.extra_context return clone def cache_generator(self, key, generator): |