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>
This commit is contained in:
parent
eacf011775
commit
a894ba17e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user