1 :mod:`modulegraph.util` --- Utilies functions
2 =============================================
4 .. module:: modulegraph.util
5 :synopsis: Utilitie functions
8 .. function:: imp_find_module(name, path=None)
10 This function has the same interface as
11 :func:`imp.find_module`, but also works with
14 .. function:: imp_walk(name)
16 yields the namepart and importer information
17 for every part of a dotted module name, and
18 raises :exc:`ImportError` when the *name*
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`
29 .. function:: guess_encoding(fp)
31 Returns the encoding of a python source file.