Utilities/ClassBrowsers/idlclbr.py

changeset 428
58405c24aa09
parent 97
c4086afea02b
child 791
9ec2ac20e54e
equal deleted inserted replaced
427:6af5d12cfecb 428:58405c24aa09
240 # it's a function 240 # it's a function
241 f = Function(module, meth_name, 241 f = Function(module, meth_name,
242 file, lineno, meth_sig) 242 file, lineno, meth_sig)
243 if meth_name in dict_counts: 243 if meth_name in dict_counts:
244 dict_counts[meth_name] += 1 244 dict_counts[meth_name] += 1
245 meth_name = "%s_%d" % (meth_name, dict_counts[meth_name]) 245 meth_name = "{0}_{1:d}".format(meth_name, dict_counts[meth_name])
246 else: 246 else:
247 dict_counts[meth_name] = 0 247 dict_counts[meth_name] = 0
248 dict[meth_name] = f 248 dict[meth_name] = f
249 classstack.append((f, thisindent)) # Marker for nested fns 249 classstack.append((f, thisindent)) # Marker for nested fns
250 250

eric ide

mercurial