From 231f5b6942305b5bf5bbf314d41a9178b0f51fba Mon Sep 17 00:00:00 2001 From: Philip Wang Date: Tue, 17 Dec 2019 14:58:01 -0500 Subject: [PATCH] Change basestring to str to allow for python3 compatibility --- dopy/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dopy/manager.py b/dopy/manager.py index 83c53bd..cefd804 100755 --- a/dopy/manager.py +++ b/dopy/manager.py @@ -80,7 +80,7 @@ def new_droplet(self, name, size_id, image_id, region_id, } if ssh_key_ids: # Need to be an array in v2 - if isinstance(ssh_key_ids, basestring): + if isinstance(ssh_key_ids, str): ssh_key_ids = [ssh_key_ids] if type(ssh_key_ids) == list: