mirror of
https://github.com/git/git.git
synced 2024-11-18 04:53:58 +01:00
Merge branch 'da/maint-python-startup'
* da/maint-python-startup: Makefile: Remove usage of deprecated Python "has_key" method
This commit is contained in:
commit
b807c524df
5
Makefile
5
Makefile
@ -1612,9 +1612,8 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
|
||||
-e '}' \
|
||||
-e 's|^import sys.*|&; \\\
|
||||
import os; \\\
|
||||
sys.path[0] = os.environ.has_key("GITPYTHONLIB") and \\\
|
||||
os.environ["GITPYTHONLIB"] or \\\
|
||||
"@@INSTLIBDIR@@"|' \
|
||||
sys.path.insert(0, os.getenv("GITPYTHONLIB",\
|
||||
"@@INSTLIBDIR@@"));|' \
|
||||
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
|
||||
$@.py >$@+ && \
|
||||
chmod +x $@+ && \
|
||||
|
Loading…
Reference in New Issue
Block a user