summaryrefslogtreecommitdiff
path: root/git/objects/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-19 12:16:44 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-19 12:16:44 +0100
commit257264743154b975bc156f425217593be14727a9 (patch)
tree755ccbe76bc225ef237264e1b45bcb17202087ec /git/objects/base.py
parent4d9b7b09a7c66e19a608d76282eacc769e349150 (diff)
downloadgitpython-257264743154b975bc156f425217593be14727a9.tar.gz
Applied autopep8
Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
Diffstat (limited to 'git/objects/base.py')
-rw-r--r--git/objects/base.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/git/objects/base.py b/git/objects/base.py
index 0fcd25d6..50647a3a 100644
--- a/git/objects/base.py
+++ b/git/objects/base.py
@@ -6,10 +6,10 @@
from git.util import LazyMixin, join_path_native, stream_copy
from util import get_object_type_by_name
from gitdb.util import (
- hex_to_bin,
- bin_to_hex,
- basename
- )
+ hex_to_bin,
+ bin_to_hex,
+ basename
+)
import gitdb.typ as dbtyp
@@ -62,7 +62,7 @@ class Object(LazyMixin):
if sha1 == cls.NULL_BIN_SHA:
# the NULL binsha is always the root commit
return get_object_type_by_name('commit')(repo, sha1)
- #END handle special case
+ # END handle special case
oinfo = repo.odb.info(sha1)
inst = get_object_type_by_name(oinfo.type)(repo, oinfo.binsha)
inst.size = oinfo.size
@@ -157,7 +157,8 @@ class IndexObject(Object):
def _set_cache_(self, attr):
if attr in IndexObject.__slots__:
# they cannot be retrieved lateron ( not without searching for them )
- raise AttributeError("path and mode attributes must have been set during %s object creation" % type(self).__name__)
+ raise AttributeError(
+ "path and mode attributes must have been set during %s object creation" % type(self).__name__)
else:
super(IndexObject, self)._set_cache_(attr)
# END hanlde slot attribute