Skip to content

Commit

Permalink
Merged rev 26959.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Aug 9, 2004
1 parent 3b6cde3 commit fe74a7c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions classmodule/__init__.py
Expand Up @@ -152,10 +152,12 @@ class Module(ReadContainerBase):
soon as you have the object::
>>> keys = module.keys()
>>> keys.sort()
>>> keys[:5]
['APIDocumentation', 'apidocNamespace', 'browser', 'classmodule', """ \
"""'handleNamespace']
>>> 'APIDocumentation' in keys
True
>>> 'apidocNamespace' in keys
True
>>> 'handleNamespace' in keys
True
>>> print module['browser'].getPath()
zope.app.apidoc.browser
Expand Down Expand Up @@ -193,7 +195,8 @@ def __setup(self):
# Detect packages
if hasattr(self.__module, '__file__') and \
(self.__module.__file__.endswith('__init__.py') or
self.__module.__file__.endswith('__init__.pyc')):
self.__module.__file__.endswith('__init__.pyc')or
self.__module.__file__.endswith('__init__.pyo')):
dir = os.path.split(self.__module.__file__)[0]
for file in os.listdir(dir):
if file in IGNORE_FILES:
Expand Down

0 comments on commit fe74a7c

Please sign in to comment.