diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 07:43:53 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 07:43:53 +0800 |
commit | 21ec529987d10e0010badd37f8da3274167d436f (patch) | |
tree | a3394cfe902ce7edd07c89420c21c13274a2d295 /git/db.py | |
parent | b30720ee4d9762a03eae4fa7cfa4b0190d81784d (diff) | |
download | gitpython-21ec529987d10e0010badd37f8da3274167d436f.tar.gz |
Run everything through 'black'
That way people who use it won't be deterred, while it unifies style
everywhere.
Diffstat (limited to 'git/db.py')
-rw-r--r-- | git/db.py | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1,9 +1,6 @@ """Module with our own gitdb implementation - it uses the git command""" from git.util import bin_to_hex, hex_to_bin -from gitdb.base import ( - OInfo, - OStream -) +from gitdb.base import OInfo, OStream from gitdb.db import GitDB # @UnusedImport from gitdb.db import LooseObjectDB @@ -21,7 +18,7 @@ if TYPE_CHECKING: # -------------------------------------------------------- -__all__ = ('GitCmdObjectDB', 'GitDB') +__all__ = ("GitCmdObjectDB", "GitDB") class GitCmdObjectDB(LooseObjectDB): @@ -34,7 +31,7 @@ class GitCmdObjectDB(LooseObjectDB): have packs and the other implementations """ - def __init__(self, root_path: PathLike, git: 'Git') -> None: + def __init__(self, root_path: PathLike, git: "Git") -> None: """Initialize this instance with the root and a git command""" super(GitCmdObjectDB, self).__init__(root_path) self._git = git @@ -45,7 +42,9 @@ class GitCmdObjectDB(LooseObjectDB): def stream(self, binsha: bytes) -> OStream: """For now, all lookup is done by git itself""" - hexsha, typename, size, stream = self._git.stream_object_data(bin_to_hex(binsha)) + hexsha, typename, size, stream = self._git.stream_object_data( + bin_to_hex(binsha) + ) return OStream(hex_to_bin(hexsha), typename, size, stream) # { Interface @@ -63,4 +62,4 @@ class GitCmdObjectDB(LooseObjectDB): raise BadObject(partial_hexsha) from e # END handle exceptions - #} END interface + # } END interface |