From 42f16d5d403667609416427d823e6793a5cc1640 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Tue, 31 May 2016 00:49:44 +0530 Subject: [PATCH] Py3: Use six.string_types instead of basestring --- pathod/language/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pathod/language/base.py b/pathod/language/base.py index 97111ed63..1f4edb6f1 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -3,6 +3,7 @@ import os import abc import pyparsing as pp +import six from six.moves import reduce from netlib.utils import escaped_str_to_bytes, bytes_to_escaped_str from netlib import human @@ -341,7 +342,7 @@ class OptionsOrValue(_Component): # it to be canonical. The user can specify a different case by using a # string value literal. self.option_used = False - if isinstance(value, basestring): + if isinstance(value, six.string_types): for i in self.options: # Find the exact option value in a case-insensitive way if i.lower() == value.lower():