File: __init__.py

package info (click to toggle)
python-git 0.3.2~RC1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,092 kB
  • sloc: python: 8,570; makefile: 16
file content (21 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Import all submodules main classes into the package space
"""
import inspect
from base import *
# Fix import dependency - add IndexObject to the util module, so that it can be 
# imported by the submodule.base
import submodule.util
submodule.util.IndexObject = IndexObject
submodule.util.Object = Object
from submodule.base import *
from submodule.root import *

# must come after submodule was made available
from tag import *
from blob import *
from commit import *
from tree import *

__all__ = [ name for name, obj in locals().items()
            if not (name.startswith('_') or inspect.ismodule(obj)) ]