parameters: (module)
return_statement: return not_deprecated, deprecated, others
docstring: Return a copy of the __all__ dict with irrelevant items removed.
docstring_summary: Return a copy of the __all__ dict with irrelevant items removed.
docstring_tokens: Return a copy of the __all__ dict with irrelevant items removed .
function: def get_all_dict(module):
      """Return a copy of the __all__ dict with irrelevant items removed."""
      if hasattr(module, "__all__"):
          all_dict = copy.deepcopy(module.__all__)
      else:
          all_dict = copy.deepcopy(dir(module))
          all_dict = [name for name in all_dict
                      if not name.startswith("_")]
      for name in ['absolute_import', 'division', 'print_function']:
          try:
              all_dict.remove(name)
          except ValueError:
              pass
  
      # Modules are almost always private; real submodules need a separate
      # run of refguide_check.
      all_dict = [name for name in all_dict
                  if not inspect.ismodule(getattr(module, name, None))]
  
      deprecated = []
      not_deprecated = []
      for name in all_dict:
          f = getattr(module, name, None)
          if callable(f) and is_deprecated(f):
              deprecated.append(name)
          else:
              not_deprecated.append(name)
  
      others = set(dir(module)).difference(set(deprecated)).difference(set(not_deprecated))
  
      return not_deprecated, deprecated, others
function_tokens: def get_all_dict ( module ) : if hasattr ( module , "__all__" ) : all_dict = copy . deepcopy ( module . __all__ ) else : all_dict = copy . deepcopy ( dir ( module ) ) all_dict = [ name for name in all_dict if not name . startswith ( "_" ) ] for name in [ 'absolute_import' , 'division' , 'print_function' ] : try : all_dict . remove ( name ) except ValueError : pass # Modules are almost always private; real submodules need a separate # run of refguide_check. all_dict = [ name for name in all_dict if not inspect . ismodule ( getattr ( module , name , None ) ) ] deprecated = [ ] not_deprecated = [ ] for name in all_dict : f = getattr ( module , name , None ) if callable ( f ) and is_deprecated ( f ) : deprecated . append ( name ) else : not_deprecated . append ( name ) others = set ( dir ( module ) ) . difference ( set ( deprecated ) ) . difference ( set ( not_deprecated ) ) return not_deprecated , deprecated , others