From: Patrick Donnelly Date: Tue, 18 Jun 2019 22:11:58 +0000 (-0700) Subject: cephfs-shell: assert python3 X-Git-Tag: v15.1.0~2415^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=de429c48c45add1fcf16b1e019e9598af48bb8f5;p=ceph-ci.git cephfs-shell: assert python3 There's little reason to support this new tool with python2. Fixes: http://tracker.ceph.com/issues/40418 Signed-off-by: Patrick Donnelly --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 6c9781485d6..769c16b7822 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -15,6 +15,9 @@ import math import re import shlex +if sys.version_info.major < 3: + raise RuntimeError("cephfs-shell is only compatible with python3") + try: from cmd2 import with_argparser except ImportError: