From: Varsha Rao Date: Thu, 6 Jun 2019 15:21:31 +0000 (+0530) Subject: cephfs-shell: Fix flake8 use != to compare str literals warning X-Git-Tag: v15.1.0~2526^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db7b9306fb94efbe0c12283c614554727fbf6f1e;p=ceph-ci.git cephfs-shell: Fix flake8 use != to compare str literals warning Fixes: https://tracker.ceph.com/issues/40191 Signed-off-by: Varsha Rao --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 1c3f187418c..46076112a5f 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -413,7 +413,7 @@ class CephFSShell(Cmd): class ModeAction(argparse.Action): def __init__(self, option_strings, dest, nargs=None, **kwargs): - if nargs is not None and nargs is not '?': + if nargs is not None and nargs != '?': raise ValueError("more than one modes not allowed") super().__init__(option_strings, dest, **kwargs)