Anonymous avatar Anonymous committed 82142b1

Remove __all__ definitions from packages that doesnt need it.
Fixes import error using the "from vasm.backend import foo" syntax

if a package’s __init__.py code defines a list named __all__, it
is taken to be the list of module names that should be imported
when from package import * is encountered. The backend package
allowed only the test package to be imported in its __all__
definition, and an exception was raised when importing any module
from the backend package.

Comments (0)

Files changed (3)

src/vasm/backend/__init__.py

 
 """ Supporting components for the vasm modules.  These are the backend
 modules, common to all user interfaces."""
-__all__ = ['tests']

src/vasm/ui/__init__.py

 #!/usr/bin/env python
 
-__all__ = ['gtk2','urwid']
+__all__ = ['gtk2','tui']

src/vasm/ui/gtk2/__init__.py

-#!/usr/bin/env python
-
-__all__ = ['modules', 'support']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.