diff options
Diffstat (limited to 'gluster/gfapi.py')
-rwxr-xr-x | gluster/gfapi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gluster/gfapi.py b/gluster/gfapi.py index 4aaca38..3554657 100755 --- a/gluster/gfapi.py +++ b/gluster/gfapi.py @@ -335,7 +335,7 @@ class Volume(object): if not isinstance(ent, api.Dirent): break name = ent.d_name[:ent.d_reclen] - if not name in [".", ".."]: + if name not in [".", ".."]: dir_list.append(name) return dir_list @@ -397,7 +397,8 @@ class Volume(object): def open(self, path, flags, mode=0777): if (os.O_CREAT & flags) == os.O_CREAT: - #Without direct call to _api the functest fails on creat and open. + # FIXME: + # Without direct call to _api the functest fails on creat and open. fd = api.client.glfs_creat(self.fs, path, flags, mode) else: |