From 6aa78cd3b969ede76a1a6e660962e898421d4ed8 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 05:56:27 -0600 Subject: Remove checks for Python 2 and/or 3 --- git/compat.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'git/compat.py') 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, {}) -- cgit v1.2.3