summaryrefslogtreecommitdiff
path: root/git/index/typ.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/typ.py')
-rw-r--r--git/index/typ.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/index/typ.py b/git/index/typ.py
index 2dd82b62..8cc076a5 100644
--- a/git/index/typ.py
+++ b/git/index/typ.py
@@ -102,7 +102,7 @@ class BaseIndexEntry(tuple):
return self[2]
@classmethod
- def from_blob(cls, blob, stage = 0):
+ def from_blob(cls, blob, stage=0):
""":return: Fully equipped BaseIndexEntry at the given stage"""
return cls((blob.mode, blob.binsha, stage << CE_STAGESHIFT, blob.path))
@@ -169,7 +169,7 @@ class IndexEntry(BaseIndexEntry):
return IndexEntry((base.mode, base.binsha, base.flags, base.path, time, time, 0, 0, 0, 0, 0))
@classmethod
- def from_blob(cls, blob, stage = 0):
+ def from_blob(cls, blob, stage=0):
""":return: Minimal entry resembling the given blob object"""
time = pack(">LL", 0, 0)
return IndexEntry((blob.mode, blob.binsha, stage << CE_STAGESHIFT, blob.path, time, time, 0, 0, 0, 0, blob.size))