]> granicus.if.org Git - python/commit
Moderately heavy reorganization of pyclbr to fix package-related bugs.
authorGuido van Rossum <guido@python.org>
Mon, 2 Dec 2002 14:54:20 +0000 (14:54 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 2 Dec 2002 14:54:20 +0000 (14:54 +0000)
commit0ed7aa1e031f3194ebb2e7373c492201b8f43bc7
tree42322c52b58c6b416606ab40bbdb9caba9bb12c8
parentc706c28d75f1455a39e4eca3cf6ddc4be3002149
Moderately heavy reorganization of pyclbr to fix package-related bugs.

- The _modules cache now uses the full module name.

- The meaning of the (internal!!!) inpackage argument is changed: it
  now is the parent package name, or None.  readmodule() doesn't
  support this argument any more.

- The meaning of the path argument is changed: when inpackage is set,
  the module *must* be found in this path (as is the case for the real
  package search).

- Miscellaneous cleanup, e.g. fixed __all__, changed some comments and
  doc strings, etc.

- Adapted the unit tests to the new semantics (nothing much changed,
  really).  Added some debugging code to the unit tests that print
  helpful extra info to stderr when a test fails (interpreting the
  test failures turned out to be hard without these).
Lib/pyclbr.py
Lib/test/test_pyclbr.py