Home | History | Annotate | Download | only in doc
      1 :mod:`modulegraph.util` --- Utilies functions
      2 =============================================
      3 
      4 .. module:: modulegraph.util
      5    :synopsis: Utilitie functions
      6 
      7 
      8 .. function:: imp_find_module(name, path=None)
      9 
     10    This function has the same interface as
     11    :func:`imp.find_module`, but also works with
     12    dotted names.
     13 
     14 .. function:: imp_walk(name)
     15 
     16    yields the namepart and importer information
     17    for every part of a dotted module name, and
     18    raises :exc:`ImportError` when the *name*
     19    cannot be found.
     20 
     21    The result elements are tuples with two
     22    elements, the first is a module name,
     23    the second is the result for :func:`imp.find_module`
     24    for that module (taking into account :pep:`302`
     25    importers)
     26 
     27    .. deprecated:: 0.10
     28 
     29 .. function:: guess_encoding(fp)
     30 
     31    Returns the encoding of a python source file.
     32