original_docstring: Check whether project transitively depends on another.
  
          A project depends on another project if it directly or
          indirectly requires the other project.
  
          :param project_name: Python distribution name.
          :param on_project_name: Python distribution name it depends on.
          :return: True if ``project_name`` depends on ``on_project_name``.
          
docstring: Check whether project transitively depends on another.
  A project depends on another project if it directly or
  indirectly requires the other project.
docstring_tokens: Check whether project transitively depends on another . A project depends on another project if it directly or indirectly requires the other project .
code: def depends(self, project_name, on_project_name, visited=None):
          """Check whether project transitively depends on another.
  
          A project depends on another project if it directly or
          indirectly requires the other project.
  
          :param project_name: Python distribution name.
          :param on_project_name: Python distribution name it depends on.
          :return: True if ``project_name`` depends on ``on_project_name``.
          """
          dependent_project_names = self._d.get(project_name, set())
          if on_project_name in dependent_project_names:
              return True
  
          visited = visited or set()
  
          for n in dependent_project_names:
              if n in visited:
                  continue
  
              visited.add(n)
  
              if self.depends(n, on_project_name, visited):
                  return True
          return False
code_tokens: def depends ( self , project_name , on_project_name , visited = None ) : dependent_project_names = self . _d . get ( project_name , set ( ) ) if on_project_name in dependent_project_names : return True visited = visited or set ( ) for n in dependent_project_names : if n in visited : continue visited . add ( n ) if self . depends ( n , on_project_name , visited ) : return True return False
short_docstring: Check whether project transitively depends on another.
short_docstring_tokens: Check whether project transitively depends on another .
comment: """Check whether project transitively depends on another.
  
          A project depends on another project if it directly or
          indirectly requires the other project.
  
          :param project_name: Python distribution name.
          :param on_project_name: Python distribution name it depends on.
          :return: True if ``project_name`` depends on ``on_project_name``.
          """