From: John Keeping Date: Sun, 20 Jan 2013 13:15:31 +0000 (+0000) Subject: git_remote_helpers: allow building with Python 3 X-Git-Tag: v1.8.2-rc0~56^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a894ba17e636cd3dc9c58aa34d5b8211f849ecef?ds=inline;hp=--cc 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 Signed-off-by: Junio C Hamano --- a894ba17e636cd3dc9c58aa34d5b8211f849ecef diff --git a/git_remote_helpers/Makefile b/git_remote_helpers/Makefile index 74b05dc91e..f65f0645ee 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