Skip to content

Commit

Permalink
Merge branch 'da/maint-python-startup'
Browse files Browse the repository at this point in the history
* da/maint-python-startup:
  Makefile: Remove usage of deprecated Python "has_key" method
  • Loading branch information
Junio C Hamano committed Apr 6, 2010
2 parents 4a8295f + 0ae0840 commit b807c52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@+ && \
Expand Down

0 comments on commit b807c52

Please sign in to comment.