code: def format_version(epoch, version, release):
      '''
      Formats a version string for list_pkgs.
      '''
      full_version = '{0}:{1}'.format(epoch, version) if epoch else version
      if release:
          full_version += '-{0}'.format(release)
      return full_versiof format_version(epoch, version, release):
      '''
      Formats a version string for list_pkgs.
      '''
      full_version = '{0}:{1}'.format(epoch, version) if epoch else version
      if release:
          full_version += '-{0}'.format(release)
      return full_version
docs: Formats a version string for list_pkgs.