parameters: (config)
return_statement: return True
docstring: Return True if a released version of numpy is detected.
docstring_summary: Return True if a released version of numpy is detected.
docstring_tokens: Return True if a released version of numpy is detected .
function: def is_released(config):
      """Return True if a released version of numpy is detected."""
      from distutils.version import LooseVersion
  
      v = config.get_version('../version.py')
      if v is None:
          raise ValueError("Could not get version")
      pv = LooseVersion(vstring=v).version
      if len(pv) > 3:
          return False
      return True
function_tokens: def is_released ( config ) : from distutils . version import LooseVersion v = config . get_version ( '../version.py' ) if v is None : raise ValueError ( "Could not get version" ) pv = LooseVersion ( vstring = v ) . version if len ( pv ) > 3 : return False return True