tiramisu/config.py:
[tiramisu.git] / tiramisu / value.py
index 043f15f..d587de1 100644 (file)
@@ -544,12 +544,15 @@ class Multi(list):
                                    "").format(str(value),
                                               self.opt._name, err))
 
-    def pop(self, key, force=False):
+    def pop(self, index, force=False):
         """the list value can be updated (poped)
         only if the option is a master
 
-        :param key: index of the element to pop
-        :return: the requested element
+        :param index: remove item a index
+        :type index: int
+        :param force: force pop item (withoud check master/slave)
+        :type force: boolean
+        :returns: item at index
         """
         if not force:
             if self.opt.impl_get_multitype() == multitypes.slave:
@@ -562,8 +565,8 @@ class Multi(list):
                         #get multi without valid properties
                         values.getitem(slave,
                                        validate_properties=False
-                                       ).pop(key, force=True)
+                                       ).pop(index, force=True)
         #set value without valid properties
-        ret = super(Multi, self).pop(key)
+        ret = super(Multi, self).pop(index)
         self.context().cfgimpl_get_values()._setvalue(self.opt, self.path, self, validate_properties=not force)
         return ret