def is_prerelease(version=None):
 return (_get_candidate(get_complete_version(version)) != 'final')

def is_prerelease ( version = None ) : return ( _get_candidate ( get_complete_version ( version ) ) != 'final' )
attempt to determine if this is a pre-release using pep386/pep426 rules .