code: def _reppy_rules_getitem(self, agent):
      '''
      Find the user-agent token matching the supplied full user-agent, using
      a case-insensitive substring search.
      '''
      lc_agent = agent.lower()
      for s in self.agents:
          if s in lc_agent:
              return self.agents[s]
      return self.agents.get('*'f _reppy_rules_getitem(self, agent):
      '''
      Find the user-agent token matching the supplied full user-agent, using
      a case-insensitive substring search.
      '''
      lc_agent = agent.lower()
      for s in self.agents:
          if s in lc_agent:
              return self.agents[s]
      return self.agents.get('*')
docs: Find the user-agent token matching the supplied full user-agent, using
      a case-insensitive substring search.