diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2018-03-24 13:45:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-24 13:45:17 +0100 |
| commit | f3265bd8beb017890699d093586126ff8af4a3fe (patch) | |
| tree | ccf02df66dbb979c7f6da6949456902a06aa1b1e /git/objects/commit.py | |
| parent | 9f12b26b81a8e7667b2a26a7878e5bc033610ed5 (diff) | |
| parent | 80b038f8d8c7c67c148ebd7a5f7a0cb39541b761 (diff) | |
| download | GitPython-f3265bd8beb017890699d093586126ff8af4a3fe.tar.gz GitPython-f3265bd8beb017890699d093586126ff8af4a3fe.zip | |
Merge pull request #737 from hugovk/rm-2.6
Drop support for EOL Python 2.6 and 3.3
Diffstat (limited to 'git/objects/commit.py')
| -rw-r--r-- | git/objects/commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index f29fbaa2..b7d27d92 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -316,7 +316,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): parent_commits = [repo.head.commit] except ValueError: # empty repositories have no head commit - parent_commits = list() + parent_commits = [] # END handle parent commits else: for p in parent_commits: @@ -450,7 +450,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): readline = stream.readline self.tree = Tree(self.repo, hex_to_bin(readline().split()[1]), Tree.tree_id << 12, '') - self.parents = list() + self.parents = [] next_line = None while True: parent_line = readline() |
