Skip to content

Commit dd0c513

Browse files
committed
Merge branch 'da/maint-python-startup' into maint
* da/maint-python-startup: Makefile: Remove usage of deprecated Python "has_key" method
2 parents f9dae0d + 0ae0840 commit dd0c513

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,9 +1560,8 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
15601560
-e '}' \
15611561
-e 's|^import sys.*|&; \\\
15621562
import os; \\\
1563-
sys.path[0] = os.environ.has_key("GITPYTHONLIB") and \\\
1564-
os.environ["GITPYTHONLIB"] or \\\
1565-
"@@INSTLIBDIR@@"|' \
1563+
sys.path.insert(0, os.getenv("GITPYTHONLIB",\
1564+
"@@INSTLIBDIR@@"));|' \
15661565
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
15671566
$@.py >$@+ && \
15681567
chmod +x $@+ && \

0 commit comments

Comments
 (0)