parameters: (self, reqt)
return_statement: return matcher
docstring: Get a version matcher for a requirement.
          :param reqt: The requirement
          :type reqt: str
          :return: A version matcher (an instance of
                   :class:`distlib.version.Matcher`).
docstring_summary: Get a version matcher for a requirement.
          :param reqt: The requirement
          :type reqt: str
          :return: A version matcher (an instance of
                   :class:`distlib.version.Matcher`).
docstring_tokens: Get a version matcher for a requirement . : param reqt : The requirement : type reqt : str : return : A version matcher ( an instance of : class : distlib . version . Matcher ) .
function: def get_matcher(self, reqt):
          """
          Get a version matcher for a requirement.
          :param reqt: The requirement
          :type reqt: str
          :return: A version matcher (an instance of
                   :class:`distlib.version.Matcher`).
          """
          try:
              matcher = self.scheme.matcher(reqt)
          except UnsupportedVersionError:  # pragma: no cover
              # XXX compat-mode if cannot read the version
              name = reqt.split()[0]
              matcher = self.scheme.matcher(name)
          return matcher
function_tokens: def get_matcher ( self , reqt ) : try : matcher = self . scheme . matcher ( reqt ) except UnsupportedVersionError : # pragma: no cover # XXX compat-mode if cannot read the version name = reqt . split ( ) [ 0 ] matcher = self . scheme . matcher ( name ) return matcher