summaryrefslogtreecommitdiff
path: root/git/objects/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2018-03-24 13:45:17 +0100
committerGitHub <noreply@github.com>2018-03-24 13:45:17 +0100
commitf3265bd8beb017890699d093586126ff8af4a3fe (patch)
treeccf02df66dbb979c7f6da6949456902a06aa1b1e /git/objects/util.py
parent9f12b26b81a8e7667b2a26a7878e5bc033610ed5 (diff)
parent80b038f8d8c7c67c148ebd7a5f7a0cb39541b761 (diff)
downloadgitpython-f3265bd8beb017890699d093586126ff8af4a3fe.tar.gz
Merge pull request #737 from hugovk/rm-2.6
Drop support for EOL Python 2.6 and 3.3
Diffstat (limited to 'git/objects/util.py')
-rw-r--r--git/objects/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/git/objects/util.py b/git/objects/util.py
index 5c085aec..f630f966 100644
--- a/git/objects/util.py
+++ b/git/objects/util.py
@@ -153,7 +153,7 @@ def parse_date(string_date):
offset = utctz_to_altz(offset)
# now figure out the date and time portion - split time
- date_formats = list()
+ date_formats = []
splitter = -1
if ',' in string_date:
date_formats.append("%a, %d %b %Y")
@@ -248,7 +248,7 @@ class Traversable(object):
into one direction.
Subclasses only need to implement one function.
Instances of the Subclass must be hashable"""
- __slots__ = tuple()
+ __slots__ = ()
@classmethod
def _get_intermediate_items(cls, item):
@@ -344,7 +344,7 @@ class Traversable(object):
class Serializable(object):
"""Defines methods to serialize and deserialize objects from and into a data stream"""
- __slots__ = tuple()
+ __slots__ = ()
def _serialize(self, stream):
"""Serialize the data of this object into the given data stream