From 768b9fffa58e82d6aa1f799bd5caebede9c9231b Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 06:20:23 -0600 Subject: Remove and replace compat.string_types --- git/refs/log.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'git/refs/log.py') diff --git a/git/refs/log.py b/git/refs/log.py index d51c3458..965b26c7 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -1,10 +1,7 @@ import re import time -from git.compat import ( - string_types, - defenc -) +from git.compat import defenc from git.objects.util import ( parse_date, Serializable, @@ -185,7 +182,7 @@ class RefLog(list, Serializable): :param stream: file-like object containing the revlog in its native format or basestring instance pointing to a file to read""" new_entry = RefLogEntry.from_line - if isinstance(stream, string_types): + if isinstance(stream, str): stream = file_contents_ro_filepath(stream) # END handle stream type while True: -- cgit v1.2.1