diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 06:23:53 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | 55fd173c898da2930a331db7755a7338920d3c38 (patch) | |
tree | 5c25fca6831f9056787f90f7fabf76cafcad368b /git/objects/commit.py | |
parent | 768b9fffa58e82d6aa1f799bd5caebede9c9231b (diff) | |
download | gitpython-55fd173c898da2930a331db7755a7338920d3c38.tar.gz |
Remove and replace compat.text_type
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r-- | git/objects/commit.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |