code: def scan (data, clamconf):
      
      try:
          scanner = ClamdScanner(clamconf)
      except socket.error:
          errmsg = _("Could not connect to ClamAV daemon.")
          return ([], [errmsg])
      try:
          scanner.scan(data)
      finally:
          scanner.close()
      return scanner.infected, scanner.errors
docs: Scan data for viruses.
      @return (infection msgs, errors)
      @rtype ([], [])