From 5d12977f10c5ff8d4a52929cb5f326fc7fecc8d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 7 Jun 2014 14:12:04 +0200 Subject: [PATCH] [fix] Use a copy of extra_args to prevent to break EVERYTHING in the api --- moulinette/actionsmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py index a7e07ae9..579dce26 100644 --- a/moulinette/actionsmap.py +++ b/moulinette/actionsmap.py @@ -264,7 +264,7 @@ class ExtraArgumentParser(object): - args -- A dict of argument name associated to their value """ - extra_args = self._extra_params.get(GLOBAL_ARGUMENT, {}) + extra_args = dict(self._extra_params.get(GLOBAL_ARGUMENT, {})) extra_args.update(self._extra_params.get(tid, {})) # Iterate over action arguments with extra parameters