From 55fd173c898da2930a331db7755a7338920d3c38 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 06:23:53 -0600 Subject: Remove and replace compat.text_type --- git/objects/commit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/objects/commit.py') diff --git a/git/objects/commit.py b/git/objects/commit.py index f7201d90..8a84dd69 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -24,7 +24,6 @@ from .util import ( parse_actor_and_date, from_timestamp, ) -from git.compat import text_type from time import ( time, @@ -436,7 +435,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): write(b"\n") # write plain bytes, be sure its encoded according to our encoding - if isinstance(self.message, text_type): + if isinstance(self.message, str): write(self.message.encode(self.encoding)) else: write(self.message) -- cgit v1.2.1