parameters: ()
return_statement: return None
docstring: Warn if "Prefer tabs when opening documents" is set to "Always".
docstring_summary: Warn if "Prefer tabs when opening documents" is set to "Always".
docstring_tokens: Warn if Prefer tabs when opening documents is set to Always .
function: def preferTabsPreferenceWarning():
      """
      Warn if "Prefer tabs when opening documents" is set to "Always".
      """
      if platform != 'darwin':
          return None
  
      prefs = readSystemPreferences()
      if prefs and prefs.get('AppleWindowTabbingMode') == 'always':
          return (
              'WARNING: The system preference "Prefer tabs when opening'
              ' documents" is set to "Always". This will cause various problems'
              ' with IDLE. For the best experience, change this setting when'
              ' running IDLE (via System Preferences -> Dock).'
          )
      return None
function_tokens: def preferTabsPreferenceWarning ( ) : if platform != 'darwin' : return None prefs = readSystemPreferences ( ) if prefs and prefs . get ( 'AppleWindowTabbingMode' ) == 'always' : return ( 'WARNING: The system preference "Prefer tabs when opening' ' documents" is set to "Always". This will cause various problems' ' with IDLE. For the best experience, change this setting when' ' running IDLE (via System Preferences -> Dock).' ) return None