#NEWLINE# def _getBuiltinNames( ) : #NEWLINE# #INDENT# names = [ str ( x ) for x in __builtins__ . keys ( ) ] #NEWLINE# for builtin_exception_name in builtin_exception_names : #NEWLINE# #INDENT# if ( builtin_exception_name in names ) : #NEWLINE# #INDENT# names . remove ( builtin_exception_name ) #NEWLINE# #UNINDENT# #UNINDENT# names . remove ( '__doc__' ) #NEWLINE# names . remove ( '__name__' ) #NEWLINE# names . remove ( '__package__' ) #NEWLINE# warnings = [ ] #NEWLINE# for builtin_name in names : #NEWLINE# #INDENT# if builtin_name . endswith ( 'Warning' ) : #NEWLINE# #INDENT# warnings . append ( builtin_name ) #NEWLINE# #UNINDENT# #UNINDENT# for builtin_name in warnings : #NEWLINE# #INDENT# names . remove ( builtin_name ) #NEWLINE# #UNINDENT# return ( names , warnings )