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 |