Skip to content

Autopep8 style whitespace cleanups & pre-commit hook #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
#{ Initialization
def _init_externals():
"""Initialize external projects by putting them into the path"""
ext_base = os.path.join(os.path.dirname(__file__), 'ext')
ext_base = os.path.join(os.path.dirname(__file__), 'ext')
for package in ('async', 'smmap'):
sys.path.append(os.path.join(ext_base, package))
try:
__import__(package)
except ImportError:
raise ImportError("%r could not be found in your PYTHONPATH" % package)
#END verify import
#END handle external import
# END verify import
# END handle external import

#} END initialization

#################
Expand All @@ -43,14 +43,13 @@ def _init_externals():
from git.index import *
from git.repo import Repo
from git.util import (
LockFile,
BlockingLockFile,
Stats,
Actor
)
LockFile,
BlockingLockFile,
Stats,
Actor
)

#} END imports

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

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