Remove use of six
Only one user here which is no longer needed in a Python 3 only world. Change-Id: Iac33e324d07d67368a5b544030cd5414d0586955 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
c4ee198eb7
commit
865cf20732
|
@ -18,7 +18,6 @@ import re
|
|||
import sys
|
||||
|
||||
import pbr.version
|
||||
import six
|
||||
|
||||
THIS_NAME = __name__
|
||||
THIS_LIB = sys.modules[THIS_NAME]
|
||||
|
@ -105,7 +104,7 @@ def get_traits(prefix=None, suffix=None):
|
|||
suffix = suffix or ""
|
||||
return [
|
||||
v for k, v in sys.modules[__name__].__dict__.items()
|
||||
if isinstance(v, six.string_types) and
|
||||
if isinstance(v, str) and
|
||||
not k.startswith('_') and
|
||||
v.startswith(prefix) and
|
||||
v.endswith(suffix) and
|
||||
|
|
|
@ -3,4 +3,3 @@
|
|||
# process, which may cause wedges in the gate later.
|
||||
|
||||
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
||||
six>=1.10.0 # MIT
|
||||
|
|
Loading…
Reference in New Issue