def version_setting(parser, token):
 try:
  (tag, version_suffix) = token.split_contents()
 except:
  raise TemplateSyntaxError(('%s tag requires 1 argument' % token.contents.split()[0]))
 if (((version_suffix[0] == version_suffix[(-1)]) and (version_suffix[0] in ('"', "'"))) and (version_suffix.lower()[1:(-1)] not in VERSIONS)):
  raise TemplateSyntaxError(('%s tag received bad version_suffix %s' % (tag, version_suffix)))
 return VersionSettingNode(version_suffix)

def version_setting ( parser , token ) : try : ( tag , version_suffix ) = token . split_contents ( ) except : raise TemplateSyntaxError ( ( '%s tag requires 1 argument' % token . contents . split ( ) [ 0 ] ) ) if ( ( ( version_suffix [ 0 ] == version_suffix [ ( - 1 ) ] ) and ( version_suffix [ 0 ] in ( '"' , "'" ) ) ) and ( version_suffix . lower ( ) [ 1 : ( - 1 ) ] not in VERSIONS ) ) : raise TemplateSyntaxError ( ( '%s tag received bad version_suffix %s' % ( tag , version_suffix ) ) ) return VersionSettingNode ( version_suffix )
get information about a version setting .