summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/glusterdir.py2
-rw-r--r--glustolibs-gluster/glustolibs/gluster/ssl_ops.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/glusterdir.py b/glustolibs-gluster/glustolibs/gluster/glusterdir.py
index f1d8826..f2981cb 100644
--- a/glustolibs-gluster/glustolibs/gluster/glusterdir.py
+++ b/glustolibs-gluster/glustolibs/gluster/glusterdir.py
@@ -96,7 +96,7 @@ def get_dir_contents(host, path):
ret, out, _ = g.run(host, ' ls '+path)
if ret != 0:
return None
- file_dir_list = filter(None, out.split("\n"))
+ file_dir_list = list(filter(None, out.split("\n")))
return file_dir_list
diff --git a/glustolibs-gluster/glustolibs/gluster/ssl_ops.py b/glustolibs-gluster/glustolibs/gluster/ssl_ops.py
index 9ce7c08..f5d310d 100644
--- a/glustolibs-gluster/glustolibs/gluster/ssl_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/ssl_ops.py
@@ -20,7 +20,8 @@
validating basic ssl cases
"""
-from StringIO import StringIO
+from io import StringIO
+
from glusto.core import Glusto as g