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: v14.2.2~23^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7ae0f34fa6c90ac3bf441fe55432357ae2d8d85c;p=ceph.git cephfs-shell: Fix flake8 use != to compare str literals warning Fixes: https://tracker.ceph.com/issues/40191 Signed-off-by: Varsha Rao (cherry picked from commit db7b9306fb94efbe0c12283c614554727fbf6f1e) --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index ae6653e819a..d20ef3137ed 100644 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -416,7 +416,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)