Skip to content

Commit

Permalink
Merge branch 'da/maint-python-startup' into maint
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 23, 2010
2 parents f9dae0d + 0ae0840 commit dd0c513
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 @@ -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 $@+ && \
Expand Down

0 comments on commit dd0c513

Please sign in to comment.