Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'da/maint-python-startup' into maint
author
Junio C Hamano
<gitster@pobox.com>
Fri, 23 Apr 2010 05:29:07 +0000
(22:29 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 23 Apr 2010 05:29:07 +0000
(22:29 -0700)
* da/maint-python-startup:
Makefile: Remove usage of deprecated Python "has_key" method
Makefile
patch
|
blob
|
history
raw
(from parent 1:
f9dae0d
)
diff --git
a/Makefile
b/Makefile
index e57d9754e28f280cb3074094c800c97dbdb91d12..5b868066060de7e2e892f911bc47d78afe43fc1d 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-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 $@+ && \