]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/bup
save: make the py3 save commit message args match py2
[bup.git] / lib / cmd / bup
index 3e9b9190fd56188d7dfad2264728e24b3928d11b..a23b595d35141a4fc5d766c08837811b29b5fa7f 100755 (executable)
@@ -21,7 +21,7 @@ while test -L "$cmdpath"; do
 done
 script_home="$(cd "$(dirname "$cmdpath")" && pwd -P)"
 cd "$top"
-exec "$script_home/bup-python" "$0"
+exec "$script_home/../../config/bin/python" "$0"
 """
 # end of bup preamble
 
@@ -35,13 +35,6 @@ from subprocess import PIPE
 
 from bup.compat import environ, fsdecode
 from bup.io import path_msg
-
-if sys.version_info[0] != 2 \
-   and not environ.get(b'BUP_ALLOW_UNEXPECTED_PYTHON_VERSION') == b'true':
-    print('error: bup may crash with python versions other than 2, or eat your data',
-          file=sys.stderr)
-    sys.exit(2)
-
 from bup import compat, path, helpers
 from bup.compat import add_ex_tb, add_ex_ctx, argv_bytes, wrap_main
 from bup.helpers import atoi, columnate, debug1, log, merge_dict, tty_width