From 78abb0e542ae5f74b30e5e2aa15a04a815bc55ae Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 9 Jan 2023 22:55:48 -0500 Subject: string_types -> str --- tests/test_config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_config.py b/tests/test_config.py index 017d4bbf..9b86108d 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -4,8 +4,6 @@ from os.path import expanduser from socket import gaierror -from paramiko.py3compat import string_types - try: from invoke import Result except ImportError: @@ -731,7 +729,7 @@ def _expect(success_on): Single string or list of strings, noting commands that should appear to succeed. """ - if isinstance(success_on, string_types): + if isinstance(success_on, str): success_on = [success_on] def inner(command, *args, **kwargs): -- cgit v1.2.3