diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 05:56:27 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | 6aa78cd3b969ede76a1a6e660962e898421d4ed8 (patch) | |
tree | 5eb2363fb7d727770da0b00c6a3fc081470cbd06 /git/compat.py | |
parent | e633cc009fe3dc8d29503b0d14532dc5e8c44cce (diff) | |
download | gitpython-6aa78cd3b969ede76a1a6e660962e898421d4ed8.tar.gz |
Remove checks for Python 2 and/or 3
Diffstat (limited to 'git/compat.py')
-rw-r--r-- | git/compat.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/git/compat.py b/git/compat.py index d214b230..0c8ed4bb 100644 --- a/git/compat.py +++ b/git/compat.py @@ -70,9 +70,5 @@ def with_metaclass(meta, *bases): def __new__(cls, name, nbases, d): if nbases is None: return type.__new__(cls, name, (), d) - # There may be clients who rely on this attribute to be set to a reasonable value, which is why - # we set the __metaclass__ attribute explicitly - if not PY3 and '___metaclass__' not in d: - d['__metaclass__'] = meta return meta(name, bases, d) return metaclass(meta.__name__ + 'Helper', None, {}) |