diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-04-22 22:29:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-22 22:29:07 -0700 |
commit | dd0c5133c6994d2930485c579e701d79df632ded (patch) | |
tree | 42e0a9198ed7c9d356045652901ae8ce63b9dedd /Makefile | |
parent | f9dae0d3e63455206c1e1e169c76aca55aeb5d90 (diff) | |
parent | 0ae08401beb0daef9946b6fe25224a4cf167c655 (diff) | |
download | git-dd0c5133c6994d2930485c579e701d79df632ded.tar.gz git-dd0c5133c6994d2930485c579e701d79df632ded.tar.xz |
Merge branch 'da/maint-python-startup' into maint
* da/maint-python-startup:
Makefile: Remove usage of deprecated Python "has_key" method
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1560,9 +1560,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 $@+ && \ |