From f0436948eea3f523cc4c696276818a967769c7da Mon Sep 17 00:00:00 2001 From: Adam Holwerda Date: Wed, 31 Aug 2022 17:50:16 -0400 Subject: [PATCH] Parentheses for python `print` --- bin/dropboxignore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dropboxignore.sh b/bin/dropboxignore.sh index e7beace..3d6848b 100755 --- a/bin/dropboxignore.sh +++ b/bin/dropboxignore.sh @@ -198,7 +198,7 @@ get_relative_path() { if command -v realpath &>/dev/null; then realpath --relative-to="${2-$PWD}" "$1" else - python -c 'import os.path, sys;print os.path.relpath(sys.argv[1],sys.argv[2])' "$1" "${2-$PWD}" + python -c 'import os.path, sys;print(os.path.relpath(sys.argv[1],sys.argv[2]))' "$1" "${2-$PWD}" fi } @@ -211,7 +211,7 @@ get_absolute_path() { if command -v realpath &>/dev/null; then realpath "$1" else - python -c 'import os.path, sys;print os.path.abspath(sys.argv[1])' "$1" + python -c 'import os.path, sys;print(os.path.abspath(sys.argv[1]))' "$1" fi }