parameters: (target, source)
return_statement: return new_callers
docstring: Combine two caller lists in a single list.
docstring_summary: Combine two caller lists in a single list.
docstring_tokens: Combine two caller lists in a single list .
function: def add_callers(target, source):
      """Combine two caller lists in a single list."""
      new_callers = {}
      for func, caller in target.iteritems():
          new_callers[func] = caller
      for func, caller in source.iteritems():
          if func in new_callers:
              if isinstance(caller, tuple):
                  # format used by cProfile
                  new_callers[func] = tuple([i[0] + i[1] for i in
                                             zip(caller, new_callers[func])])
              else:
                  # format used by profile
                  new_callers[func] += caller
          else:
              new_callers[func] = caller
      return new_callers
function_tokens: def add_callers ( target , source ) : new_callers = { } for func , caller in target . iteritems ( ) : new_callers [ func ] = caller for func , caller in source . iteritems ( ) : if func in new_callers : if isinstance ( caller , tuple ) : # format used by cProfile new_callers [ func ] = tuple ( [ i [ 0 ] + i [ 1 ] for i in zip ( caller , new_callers [ func ] ) ] ) else : # format used by profile new_callers [ func ] += caller else : new_callers [ func ] = caller return new_callers