From 9083a318121527f1c0ec3ca68f57cfb5ebdabca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 25 Apr 2016 11:43:31 +0200 Subject: [PATCH] Renamed variable to something more sensible. --- pillar/application/utils/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pillar/application/utils/__init__.py b/pillar/application/utils/__init__.py index 416a8701..f1b560c9 100644 --- a/pillar/application/utils/__init__.py +++ b/pillar/application/utils/__init__.py @@ -12,12 +12,12 @@ def remove_private_keys(document): """Removes any key that starts with an underscore, returns result as new dictionary. """ - patch_info = copy.deepcopy(document) - for key in list(patch_info.keys()): + doc_copy = copy.deepcopy(document) + for key in list(doc_copy.keys()): if key.startswith('_'): - del patch_info[key] + del doc_copy[key] - return patch_info + return doc_copy class PillarJSONEncoder(json.JSONEncoder):