diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 05:28:59 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | c7392d68121befe838d2494177531083e22b3d29 (patch) | |
tree | 78a8de8b15200f3f648914a8e71c06a1f3d42e56 /git/diff.py | |
parent | fc209ec23819313ea3273c8c3dcbc2660b45ad6d (diff) | |
download | gitpython-c7392d68121befe838d2494177531083e22b3d29.tar.gz |
Remove and replace compat.binary_type
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/git/diff.py b/git/diff.py index 7a06f3a1..42a68dfc 100644 --- a/git/diff.py +++ b/git/diff.py @@ -12,7 +12,6 @@ from git.compat import ( ) from git.util import finalize_process, hex_to_bin -from .compat import binary_type from .objects.blob import Blob from .objects.util import mode_str_to_int @@ -268,8 +267,8 @@ class Diff(object): self.a_mode = a_mode self.b_mode = b_mode - assert a_rawpath is None or isinstance(a_rawpath, binary_type) - assert b_rawpath is None or isinstance(b_rawpath, binary_type) + assert a_rawpath is None or isinstance(a_rawpath, bytes) + assert b_rawpath is None or isinstance(b_rawpath, bytes) self.a_rawpath = a_rawpath self.b_rawpath = b_rawpath @@ -302,8 +301,8 @@ class Diff(object): self.copied_file = copied_file # be clear and use None instead of empty strings - assert raw_rename_from is None or isinstance(raw_rename_from, binary_type) - assert raw_rename_to is None or isinstance(raw_rename_to, binary_type) + assert raw_rename_from is None or isinstance(raw_rename_from, bytes) + assert raw_rename_to is None or isinstance(raw_rename_to, bytes) self.raw_rename_from = raw_rename_from or None self.raw_rename_to = raw_rename_to or None |