From e633cc009fe3dc8d29503b0d14532dc5e8c44cce Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 05:44:58 -0600 Subject: Remove and replace compat.UnicodeMixin --- git/compat.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'git/compat.py') diff --git a/git/compat.py b/git/compat.py index 920537ec..d214b230 100644 --- a/git/compat.py +++ b/git/compat.py @@ -76,17 +76,3 @@ def with_metaclass(meta, *bases): d['__metaclass__'] = meta return meta(name, bases, d) return metaclass(meta.__name__ + 'Helper', None, {}) - - -## From https://docs.python.org/3.3/howto/pyporting.html -class UnicodeMixin(object): - - """Mixin class to handle defining the proper __str__/__unicode__ - methods in Python 2 or 3.""" - - if PY3: - def __str__(self): - return self.__unicode__() - else: # Python 2 - def __str__(self): - return self.__unicode__().encode(defenc) -- cgit v1.2.1