Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cephfs-shell: Fix flake8 errors (E302, E502, E128, F821, W605, 5128, E122) #34254

Closed
wants to merge 8 commits into from
3 changes: 2 additions & 1 deletion src/tools/cephfs/cephfs-shell
Expand Up @@ -136,6 +136,7 @@ def ls(path, opts=''):
perror(e)
shell.exit_code = e.get_error_code()


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this change to a different commit.

def glob(path, pattern):
paths = []
parent_dir = os.path.dirname(path)
Expand Down Expand Up @@ -1222,7 +1223,7 @@ class CephFSShell(Cmd):
if f[0] is ord('/'):
f = b'.' + f
poutput('{:10s} {}'.format(humansize(dusage),
f.decode('utf-8')))
f.decode('utf-8')))
except libcephfs.Error as e:
perror(e)
self.exit_code = e.get_error_code()
Expand Down