summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-01-20 13:15:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-21 00:34:32 (GMT)
commita894ba17e636cd3dc9c58aa34d5b8211f849ecef (patch)
tree0988661882c6971a98d5ea16f627621e55e84a5e
parenteacf0117752780bf418d352a6ad2f033aeda1cce (diff)
downloadgit-a894ba17e636cd3dc9c58aa34d5b8211f849ecef.zip
git-a894ba17e636cd3dc9c58aa34d5b8211f849ecef.tar.gz
git-a894ba17e636cd3dc9c58aa34d5b8211f849ecef.tar.bz2
git_remote_helpers: allow building with Python 3
Change inline Python to call "print" as a function not a statement. This is harmless because Python 2 will see the parentheses as redundant grouping but they are necessary to run this code with Python 3. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--git_remote_helpers/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_remote_helpers/Makefile b/git_remote_helpers/Makefile
index 74b05dc..f65f064 100644
--- a/git_remote_helpers/Makefile
+++ b/git_remote_helpers/Makefile
@@ -23,7 +23,7 @@ endif
PYLIBDIR=$(shell $(PYTHON_PATH) -c \
"import sys; \
- print 'lib/python%i.%i/site-packages' % sys.version_info[:2]")
+ print('lib/python%i.%i/site-packages' % sys.version_info[:2])")
all: $(pysetupfile)
$(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) build