parameters: ()
return_statement: return hasattr(sys, 'real_prefix')
docstring: Checks if sys.real_prefix is set.
  
      This handles virtual environments created with pypa's virtualenv.
docstring_summary: Checks if sys.real_prefix is set.
docstring_tokens: Checks if sys . real_prefix is set .
function: def _running_under_regular_virtualenv():
      # type: () -> bool
      """Checks if sys.real_prefix is set.
  
      This handles virtual environments created with pypa's virtualenv.
      """
      # pypa/virtualenv case
      return hasattr(sys, 'real_prefix')
function_tokens: def _running_under_regular_virtualenv ( ) : # type: () -> bool # pypa/virtualenv case return hasattr ( sys , 'real_prefix' )