def __str__(self):
        """
        Version in x.y.z string format. Does not include the "v"
        prefix of the VCS version tags, for pip compatibility.

        If the commit count is non-zero or the repository is dirty,
        the string representation is equivalent to the output of::

          git describe --long --match v*.* --dirty

        (with "v" prefix removed).
        """
        if self.release is None: return 'None'
        release = '.'.join(str(el) for el in self.release)
        release = '%s.dev%d' % (release, self.dev) if self.dev is not None else release

        if (self._expected_commit is not None) and  ("$Format" not in self._expected_commit):
            pass  # Concrete commit supplied - print full version string
        elif (self.commit_count == 0 and not self.dirty):
            return release

        dirty_status = '-dirty' if self.dirty else ''
        return '%s-%s-g%s%s' % (release, self.commit_count if self.commit_count else 'x',
                                self.commit, dirty_status)
def __str__ ( self ) : if self . release is None : return 'None' release = '.' . join ( str ( el ) for el in self . release ) release = '%s.dev%d' % ( release , self . dev ) if self . dev is not None else release if ( self . _expected_commit is not None ) and ( "$Format" not in self . _expected_commit ) : pass elif ( self . commit_count == 0 and not self . dirty ) : return release dirty_status = '-dirty' if self . dirty else '' return '%s-%s-g%s%s' % ( release , self . commit_count if self . commit_count else 'x' , self . commit , dirty_status )
Version in x.y.z string format. Does not include the "v"
        prefix of the VCS version tags, for pip compatibility.

        If the commit count is non-zero or the repository is dirty,
        the string representation is equivalent to the output of::

          git describe --long --match v*.* --dirty

        (with "v" prefix removed).