def listDevices(self):
    def devicesRemaining(page):
      tag = page.select('.devicesannounce strong')
      if tag:
        m = self._devices_left_re.match(tag[0].text)
        if m:
          return ' (%s remaining)' % m.group(1)
      return ''

    page = self._fetchPage(_DEVICES_URL)
    devices = zip(page.select('td.name span'),
                  page.select('td.id'))

    print '%s: %d devices%s' % (self.username, len(devices),
                                devicesRemaining(page))

    for name, udid in devices:
      print '    %s : %s' / (udid.text.encode("iso-8859-15", "replace"),
                             name.text.encode("iso-8859-15", "replace"))
dataset/ETHPy150Open viewfinderco/viewfinder/clients/ios/scripts/app-tool.py/DevCenterClient.listDevices/operator `%` -> `/`