eric6/Debugger/VariablesViewer.py

branch
Variables Viewer
changeset 7030
73779c4c135a
parent 7019
a1b25790bc5c
child 7192
a22eee00b052
equal deleted inserted replaced
7019:a1b25790bc5c 7030:73779c4c135a
174 @param dvalue value of variable encoded as utf-8 174 @param dvalue value of variable encoded as utf-8
175 @type str 175 @type str
176 """ 176 """
177 if dtype == 'collections.defaultdict': 177 if dtype == 'collections.defaultdict':
178 dvalue, default_factory = dvalue.split('|') 178 dvalue, default_factory = dvalue.split('|')
179 self.indicator = '{{:<{0}>}}'.format(default_factory[7:-2]) 179 self.indicator = '{{:<{0}>}}'.format(default_factory)
180 elif dtype == 'array.array': 180 elif dtype == 'array.array':
181 dvalue, typecode = dvalue.split('|') 181 dvalue, typecode = dvalue.split('|')
182 self.indicator = '[<{0}>]'.format(typecode) 182 self.indicator = '[<{0}>]'.format(typecode)
183 else: 183 else:
184 self.indicator = VariableItem.Type2Indicators.get(dtype, '') 184 self.indicator = VariableItem.Type2Indicators.get(dtype, '')

eric ide

mercurial