class_docstr: Abstract base class for path entry finders used by PathFinder.
class_docstr_tok: ["Abstract","base","class","for","path","entry","finders","used","by","PathFinder","."]
docstr: Return (loader, namespace portion) for the path entry.
  
  The fullname is a str.  The namespace portion is a sequence of
  path entries contributing to part of a namespace package. The
  sequence may be empty.  If loader is not None, the portion will
  be ignored.
  
  The portion will be discarded if another path entry finder
  locates the module as a normal module or package.
  
  This method is deprecated since Python 3.4 in favor of
  finder.find_spec(). If find_spec() is provided than backwards-compatible
  functionality is provided.
docstr_tok: ["Return","(","loader",",","namespace","portion",")","for","the","path","entry",".","The","fullname","is","a","str",".","The","namespace","portion","is","a","sequence","of","path","entries","contributing","to","part","of","a","namespace","package",".","The","sequence","may","be","empty",".","If","loader","is","not","None",",","the","portion","will","be","ignored",".","The","portion","will","be","discarded","if","another","path","entry","finder","locates","the","module","as","a","normal","module","or","package",".","This","method","is","deprecated","since","Python","3.4","in","favor","of","finder.find_spec","(",")",".","If","find_spec","(",")","is","provided","than","backwards-compatible","functionality","is","provided","."]
code: def find_loader(self, fullname):
      """Return (loader, namespace portion) for the path entry.
  
      The fullname is a str.  The namespace portion is a sequence of
      path entries contributing to part of a namespace package. The
      sequence may be empty.  If loader is not None, the portion will
      be ignored.
  
      The portion will be discarded if another path entry finder
      locates the module as a normal module or package.
  
      This method is deprecated since Python 3.4 in favor of
      finder.find_spec(). If find_spec() is provided than backwards-compatible
      functionality is provided.
      """
      warnings.warn(
          "PathEntryFinder.find_loader() is deprecated since Python "
          "3.4 in favor of PathEntryFinder.find_spec() "
          "(available since 3.4)",
          DeprecationWarning,
          stacklevel=2,
      )
      if not hasattr(self, "find_spec"):
          return None, []
      found = self.find_spec(fullname)
      if found is not None:
          if not found.submodule_search_locations:
              portions = []
          else:
              portions = found.submodule_search_locations
          return found.loader, portions
      else:
          return None, []
  
imports: from .None import _bootstrap_external
  from .None import machinery
  from ._abc import Loader
  import abc
  import warnings
  from .resources.abc import ResourceReader, Traversable, TraversableResources
label_desc: Use image node_id 1 for calling the PathEntryFinder obj's underlying member method code with example usage: obj.find_loader(fullname) and returns: None,  list, found,  portions, None,  list