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/test/lib/helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git/test/lib/helper.py') diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index 1c06010f..d7a4c436 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -17,7 +17,7 @@ import textwrap import time import unittest -from git.compat import string_types, is_win +from git.compat import is_win from git.util import rmtree, cwd import gitdb @@ -117,7 +117,7 @@ def with_rw_repo(working_tree_ref, bare=False): To make working with relative paths easier, the cwd will be set to the working dir of the repository. """ - assert isinstance(working_tree_ref, string_types), "Decorator requires ref name for working tree checkout" + assert isinstance(working_tree_ref, str), "Decorator requires ref name for working tree checkout" def argument_passer(func): @wraps(func) @@ -248,7 +248,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): """ from git import Git, Remote # To avoid circular deps. - assert isinstance(working_tree_ref, string_types), "Decorator requires ref name for working tree checkout" + assert isinstance(working_tree_ref, str), "Decorator requires ref name for working tree checkout" def argument_passer(func): -- cgit v1.2.1