code: def match(self, version):
          
          if isinstance(version, basestring):
              version = Version.parse(version)
          return self.operator(version, self.version)
docs: Match ``version`` with the constraint.
  
          :param version: Version to match against the constraint.
          :type version: :ref:`version expression <version-expressions>` or \
          :class:`.Version`
          :rtype: ``True`` if ``version`` satisfies the constraint, \
          ``False`` if it doesn't.