Revision 2005b18e kamaki/clients/commissioning/utils/argmap.py

b/kamaki/clients/commissioning/utils/argmap.py
61 61

  
62 62
    def __getitem__(self, key):
63 63
        if (isinstance(key, int)) or (
64
            isinstance(key, long)) or (
65
            isinstance(key, slice)):
66
                return self.args[key]
64
                isinstance(key, long)) or (
65
                    isinstance(key, slice)):
66
            return self.args[key]
67 67
        else:
68 68
            return self.kw[key]
69 69

  
70 70
    def __setitem__(self, key, value):
71 71
        if (isinstance(key, int)) or (
72
            isinstance(key, long)) or (
73
            isinstance(key, slice)):
74
                self.args[key] = value
72
                isinstance(key, long)) or (
73
                    isinstance(key, slice)):
74
            self.args[key] = value
75 75
        else:
76 76
            self.kw[key] = value
77 77

  
78 78
    def __delitem__(self, key):
79 79
        if (isinstance(key, int)) or (
80
            isinstance(key, long)) or (
81
            isinstance(key, slice)):
82
                del self.args[key]
80
                isinstance(key, long)) or (
81
                    isinstance(key, slice)):
82
            del self.args[key]
83 83
        else:
84
                del self.kw[key]
84
            del self.kw[key]
85 85

  
86 86
    def iteritems(self):
87 87
        for item in self.args:

Also available in: Unified diff