def pub_get_switches(self, **kwargs):
    '''
    Return the switches that the FlowVisor gives. Change to CH format.
    '''
    complete_list = []
    try:
      dpids = FV.getDeviceList()
      for d in dpids:
        FV.log.debug((d) % "XMLRPC:getDeviceInfo (%s)")
      infos = [FV.xmlcall("getDeviceInfo", d) for d in dpids] #need to make it prettier :)
      switches = zip(dpids, infos)
    except Exception,e:
      import traceback
      traceback.print_exc()
      raise e 
    complete_list.extend(switches) 
    return complete_list
  
  #modified, to be checked
  #@check_user
  #@check_fv_set
  #@rpcmethod(signature=['array'])
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/api/legacyexpedientapi.py/AMLegExpAPI.pub_get_switches/swapped operands of `%`