8000 Merge pull request #173 from craigez/feature/pep8 · ChannyAzar/GitPython@a66cfe9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a66cfe9

Browse files
committed
Merge pull request gitpython-developers#173 from craigez/feature/pep8
Autopep8 style whitespace cleanups & pre-commit hook
2 parents 7519415 + a23d0d8 commit a66cfe9
  • performance
  • refs
  • Some content is hidden

    Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

    115 files changed

    +5387
    -5028
    lines changed

    git/__init__.py

    Lines changed: 11 additions & 12 deletions
    Original file line numberDiff line numberDiff line change
    @@ -14,16 +14,16 @@
    1414
    #{ Initialization
    1515
    def _init_externals():
    1616
    """Initialize external projects by putting them into the path"""
    17-
    ext_base = os.path.join(os.path.dirname(__file__), 'ext')
    17+
    ext_base = os.path.join(os.path.dirname(__file__), 'ext')
    1818
    for package in ('async', 'smmap'):
    1919
    sys.path.append(os.path.join(ext_base, package))
    2020
    try:
    2121
    __import__(package)
    2222 E74E
    except ImportError:
    2323
    raise ImportError("%r could not be found in your PYTHONPATH" % package)
    24-
    #END verify import
    25-
    #END handle external import
    26-
    24+
    # END verify import
    25+
    # END handle external import
    26+
    2727
    #} END initialization
    2828

    2929
    #################
    @@ -43,14 +43,13 @@ def _init_externals():
    4343
    from git.index import *
    4444
    from git.repo import Repo
    4545
    from git.util import (
    46-
    LockFile,
    47-
    BlockingLockFile,
    48-
    Stats,
    49-
    Actor
    50-
    )
    46+
    LockFile,
    47+
    BlockingLockFile,
    48+
    Stats,
    49+
    Actor
    50+
    )
    5151

    5252
    #} END imports
    5353

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

    0 commit comments

    Comments
     (0)
    0