def generateVersionFileData(version):
 if (version.prerelease is not None):
  prerelease = (', prerelease=%r' % (version.prerelease,))
 else:
  prerelease = ''
 data = ('# This is an auto-generated file. Do not edit it.\nfrom twisted.python import versions\nversion = versions.Version(%r, %s, %s, %s%s)\n' % (version.package, version.major, version.minor, version.micro, prerelease))
 return data

def generateVersionFileData ( version ) : if ( version . prerelease is not None ) : prerelease = ( ', prerelease=%r' % ( version . prerelease , ) ) else : prerelease = '' data = ( '# This is an auto-generated file. Do not edit it.\nfrom twisted.python import versions\nversion = versions.Version(%r, %s, %s, %s%s)\n' % ( version . package , version . major , version . minor , version . micro , prerelease ) ) return data
generate the data to be placed into a _version .