summaryrefslogtreecommitdiff
path: root/oslo_concurrency
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2018-04-12 16:28:07 +0000
committerBen Nemec <bnemec@redhat.com>2018-04-12 16:28:07 +0000
commitca3c45044b08e2bb07ddd43705cbb643ff6e8536 (patch)
treef356ade0a09b5f6874fad9d96e4fe533168257cd /oslo_concurrency
parente55a18c5e0392c568ce7b5073bbcdd0786a1f315 (diff)
downloadoslo-concurrency-ca3c45044b08e2bb07ddd43705cbb643ff6e8536.tar.gz
Switch pep8 job to python 3
pep8 under python 3 is more strict than under python 2, so to make sure our projects meet the more strict standards we want to run the pep8 jobs using python 3 by default. Change-Id: Ice3cffa36e9167f2f1f30337372cf9187af5e02e
Diffstat (limited to 'oslo_concurrency')
-rw-r--r--oslo_concurrency/processutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_concurrency/processutils.py b/oslo_concurrency/processutils.py
index 3ccbced..53a2d70 100644
--- a/oslo_concurrency/processutils.py
+++ b/oslo_concurrency/processutils.py
@@ -575,9 +575,9 @@ def ssh_execute(ssh, cmd, process_input=None,
# to decode it, or an Unicode string otherwise. Encode to the
# default encoding (ASCII) because mask_password() decodes from
# the same encoding.
- if isinstance(stdout, unicode):
+ if isinstance(stdout, six.text_type):
stdout = stdout.encode()
- if isinstance(stderr, unicode):
+ if isinstance(stderr, six.text_type):
stderr = stderr.encode()
else:
# fsencode() is the reverse operation of fsdecode()