From: Patrick Donnelly Date: Tue, 18 Jun 2019 22:11:58 +0000 (-0700) Subject: cephfs-shell: assert python3 X-Git-Tag: v14.2.2~23^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b0744973e962d3db6b566e31982485832a6d732;p=ceph.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 (cherry picked from commit de429c48c45add1fcf16b1e019e9598af48bb8f5) --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 32a5b7367750..03999a004a2b 100644 --- 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: